|
IntlDateFormatter::setPatterndatefmt_set_patternSet the pattern used for the IntlDateFormatter DescriptionObject-oriented style
public bool IntlDateFormatter::setPattern(string
$pattern )Procedural style bool datefmt_set_pattern(IntlDateFormatter
$formatter , string $pattern )Set the pattern used for the IntlDateFormatter. Parameters
Return Values
Returns ExamplesExample #1 datefmt_set_pattern example
Example #2 OO example
The above example will output: Pattern of the formatter is : MM/dd/yyyy First Formatted output is 12/31/1969 Now pattern of the formatter is : yyyyMMdd hh:mm:ss z Second Formatted output is 19691231 04:00:00 PST See Also
|