Hi I have a date format like this
(in English format)
15. July 2011
And I want to convert it in German format like this
15. Juli 2011
How to convert date format from one laguage to other language format?
My Code is
$date = '15. July 2011';
$newLocale = setlocale(LC_TIME, 'de_DE');
$date = strftime('%d. %B %Y',$date);
But this is not converting I am getting July rather than Juli
You could use
setlocalefunction before callingdatefunction:EDIT: Quote from
strftimedocs: