I have a simple problem into my code. I have a function where I pass a date into an italian format and I want to change the format to english.
I have try this:
public function changeDateFormat($date_start_old){
$date_start_old = strtotime($date_start_old);
$date_start = date("Y/m/d" , $date_start_old);
echo('Date start: '.$date_start);
}
My old date_start is:
01/lug/2013
(is equivalent of 01/07/2013)
And when I try to print new date_start I retrieve this because doesn't recognize lug
:
1970/01/01
Is there a way to transform italian date to english and after change format?
Thanks