$StartDate = strtotime($_POST['FromDate']);
$EndDate = strtotime($_POST['TooDate']);
$Date = strtotime($StartDate);
while (strtotime($Date) <= strtotime($EndDate)) {
echo date('dMY', $Date);
$Date = strtotime('+1 Day', $Date);
echo "<br>";
}
I only get 1 and 2nd of Jan 1970, why?