I'm trying to convert a list of dates from d/m/Y to Y-m-d, my list of dates are these so far:
I'm using this code to convert it:
But when i use this i get the following output:
Any ideas why this doesn't work?
30/09/2008
01/10/2008
02/10/2008
15/10/2008
22/10/2008
04/11/2008
12/11/2008
10/11/2008
04/11/2008
20/10/2008
14/11/2008
I'm using this code to convert it:
PHP:
$projectdate = date('Y-m-d', strtotime($projectdate));
But when i use this i get the following output:
1970-01-01
2008-01-10
2008-02-10
1970-01-01
1970-01-01
1970-01-01
1970-01-01
2008-04-11
2008-04-11
2008-10-11
2008-12-11
1970-01-01
Any ideas why this doesn't work?