[PHP-NOTES] note 130331 added to intldateformatter.parse

[email protected] ("[email protected]")
Newsgroups php.notes
Message-ID <[email protected]>
To parse a date like "17 février 2025" (french/français) :
<?php
$fmt = new \IntlDateFormatter(
    "fr-FR", 
    IntlDateFormatter::FULL, 
    IntlDateFormatter::FULL, 
    'Europe/Paris', //'Etc/UTC', 
    IntlDateFormatter::GREGORIAN, 
    'dd LLLL y'
);
$ts = $fmt->parse('17 février 2025');
echo ($fmt->format( $ts) ),"\n";
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 2a02:842a:20fe:601:5357:62c0:7a04:3302)
----
Manual Page -- https://php.net/manual/en/intldateformatter.parse.php
Edit        -- https://main.php.net/note/edit/130331
Del: integrated  -- https://main.php.net/note/delete/130331/integrated
Del: useless     -- https://main.php.net/note/delete/130331/useless
Del: bad code    -- https://main.php.net/note/delete/130331/bad+code
Del: spam        -- https://main.php.net/note/delete/130331/spam
Del: non-english -- https://main.php.net/note/delete/130331/non-english
Del: in docs     -- https://main.php.net/note/delete/130331/in+docs
Del: other reasons-- https://main.php.net/note/delete/130331
Reject      -- https://main.php.net/note/reject/130331
Search      -- https://main.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.