FormatConverter
API reference › yii › helpers › FormatConverter
FormatConverter provides functionality to convert between different formatting pattern formats.
It provides functions to convert date format patterns between different conventions.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$juiFallbackDatePatterns static | array | The jQuery UI fallback definition to use for the ICU short patterns short, medium, long and full. Default: ['short' => ['date' => 'd/m/y',. | BaseFormatConverter |
$phpFallbackDatePatterns static | array | The php fallback definition to use for the ICU short patterns short, medium, long and full. Default: ['short' => ['date' => 'n/j/y',. | BaseFormatConverter |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
convertDateIcuToJui() static | Converts a date format pattern from ICU format to jQuery UI date format. | BaseFormatConverter |
convertDateIcuToPhp() static | Converts a date format pattern from ICU format to PHP date() function format. | BaseFormatConverter |
convertDatePhpToIcu() static | Converts a date format pattern from PHP date() function format to ICU format. | BaseFormatConverter |
convertDatePhpToJui() static | Converts a date format pattern from PHP date() function format to jQuery UI date format. | BaseFormatConverter |