|
IntlDateFormatter::getPatterndatefmt_get_patternGet the pattern used for the IntlDateFormatter DescriptionObject-oriented style
public stringfalse IntlDateFormatter::getPattern()
Procedural style stringfalse datefmt_get_pattern(IntlDateFormatter
$formatter )Get pattern used by the formatter. Parameters
Return Values
The pattern string being used to format/parse, or ExamplesExample #1 datefmt_get_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 19690031 04:00:00 PST See Also
|