I have some short dates in my POST variables.
If I do this:
$i = 0;
foreach ($data->week as $week) {
$date = $_POST['date'.($i+1)];
echo $date;
...
$i++;
}
it returns the correct short dates e.g. 09.12. and 12.12.
If I do this
echo date('d.m.Y', strtotime($date));
it's returning 09.12.2013 (correct) and 09.12.2013 (incorrect, should be 12.12.2013).
Andy ideas?