- date: documentation ( source)
- strtotime: documentation ( source)
<?php
echo strtotime("2014-06-15 00:00:00");
echo "\r\n";
echo strtotime("2014-06-15 23:59:59");
echo "\r\n";
echo strtotime("2014-06-16");
echo "\r\n";
echo date("Y-m-d H:i:s", 1402783200);