I have the following code:
$date1 = (string)$_POST['convocatory_open_start_date']; // "30/04/2015"
$date2 = (string)$_POST['convocatory_open_end_date']; // "31/05/2015"
$startDate = date('Y-m-d', strtotime($date1));
$endDate = date('Y-m-d', strtotime($date2));
but I always get $startDate and $endDate 1970-01-01 Why???
Please Help I have like 3 hours in the same problem.
Thanks