Php Date And Time Formats In Locale In Yii2

The PHP datetime class (and other functions) use php-specific date and time formats - such as ‘d/m/Y’, which results in ‘dd/mm/yyyy’.

It would be very helpfull if both the php-formats and equivalent iso-formats could be included in the locales, since different validation rules might need different formats. For an example of such validation rules, check the ‘validation’ section in this wiki.

We’re going to use intl for formatting so formats will be ICU’s most probably.

Hi Samdark.

That looks promising, since ICU can also do time-zone conversions. Sounds good. Can’t wait.