Re: Bilingual strtotime()
| From: | Per Jessen | Date: | Sat, 05 Feb 2011 20:23:55 +0000 |
| Subject: | Re: Bilingual strtotime() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311160@lists.php.net to get a copy of this message | ||
Alexis wrote:
> Hi,
>
> Living in Canada, and being a bilingual country, I have data I am
> processing which includes dates in both English and French.
>
> I was wondering if there was a way to use the strtotime() function
> when the months are in one or the other of the above two languages?
Sure, strftime() is locale-sensitive. Set the locale().
--
Per Jessen, Zürich (4.4°C)