Hi, I have the following code:
$date = 'Nov 7, 2007';
echo date('Y-m-d', strtotime($date));//outputs 2007-11-07
$date2 = $dates[1][0];
echo $date2;//outputs Nov 7, 2007
echo date('Y-m-d', strtotime($date2));//outputs 1969-12-31
How can I have the last line output 2007-11-07?
Thanks in advance.