Hello,
The dd/mm/YYYY format is not a valid date format for the purpose of date processing in php. When using forward slashes, the correct format is mm/dd/YYYY.
Please execute the following code to test it firsthand:
<?php
$date = strtotime('2012-05-28');
$formats = array(
'd/m/Y',
'm/d/Y',
'd/m/y',
'm/d/y'
);
foreach ($formats as $d)
print(date($d, $date).' is parsed as '.date('Y-m-d', strtotime(date($d, $date))).'<br>');
?>
The results:
28/05/2012 is parsed as 1970-01-01
05/28/2012 is parsed as 2012-05-28
28/05/12 is parsed as 1970-01-01
05/28/12 is parsed as 2012-05-28
Kind regards,
Arek