I'm creating a PHP website and I have to test a date to know if minutes == 00, 15, 30 or 45
To enter the date I use a datetime-local input in the HTML form.
Unfortunately when I try to get the minutes it always returns "33"
Here is my code :
$d=date('Y-m-d H:i:s', strtotime($date_deb));
echo $d.'<br />'.date(i,$d);
it returns:
2013-08-18 12:05:00
33