note 126875 added to intldateformatter.format
| From: | RdotMansveldatSpider-ITdotde at main dot php dot net | Date: | Thu, 24 Feb 2022 15:04:19 +0000 |
| Subject: | note 126875 added to intldateformatter.format | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217649@lists.php.net to get a copy of this message | ||
In PHP 8.1 strftime is deprecated, but IntlDateFormatter gives different results.
en_US => strftime() = '02/13/2022', IntlDateFormatter SHORT = '2/13/22',
IntDateFormatter MEDIUM = 'Feb 13, 2022'
de_DE => strftime() = '13.02.2022', IntlDateFormatter SHORT = '13.02.22',
IntDateFormatter MEDIUM = '13.02.2022'
nl_NL => strftime() = '13-02-22', IntlDateFormatter SHORT = '13-02-2022',
IntDateFormatter MEDIUM = '13 feb. 2022'
How do I always get a clean date with full year?
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.135 (proxied: 79.238.154.11)
----
Manual Page -- https://php.net/manual/en/intldateformatter.format.php
Edit -- https://main.php.net/note/edit/126875
Del: integrated -- https://main.php.net/note/delete/126875/integrated
Del: useless -- https://main.php.net/note/delete/126875/useless
Del: bad code -- https://main.php.net/note/delete/126875/bad+code
Del: spam -- https://main.php.net/note/delete/126875/spam
Del: non-english -- https://main.php.net/note/delete/126875/non-english
Del: in docs -- https://main.php.net/note/delete/126875/in+docs
Del: other reasons-- https://main.php.net/note/delete/126875
Reject -- https://main.php.net/note/reject/126875
Search -- https://main.php.net/manage/user-notes.php