Parse french date in php

前端 未结 6 1072
南笙
南笙 2021-01-18 09:55

I have string:

\"Lundi, 08 Juillet 2013 09:09\"

How can I parse this type string?

I try:

    $date = \'08 Juillet 2013 09:0         


        
6条回答
  •  盖世英雄少女心
    2021-01-18 10:08

    You could use strftime. If there's only one language and you use shared hosting where french isn't supported, you could build an array with the months, and replace them with the english version.

提交回复
热议问题