I'm trying to write a function to display my date separated in French with the full name.
My post_meta
(wordpress) return this :
array (size=3)
'date' => string '09/02/2017' (length=10)
'hours' => string '00' (length=2)
'minutes' => string '00' (length=2)
It's in french format d/m/y, I have tried strftime()
with argument %B
for locale full month display but I don't understand this function, it needs complete format date.
For example, when I type
$month = 02;
echo strftime("%B", $month);
the function return always "Janvier" (January in english)..
Anyone I have an idea for fix this and display day of week (letter) / day (number) and month (letter)?
Thanks.