jd2007 Posted July 14, 2007 Share Posted July 14, 2007 Can u show me an example in where the function date_create is used ? Link to comment https://forums.phpfreaks.com/topic/59915-php-datetime-help/ Share on other sites More sharing options...
keeB Posted July 14, 2007 Share Posted July 14, 2007 <?php echo strtotime("now"), "\n"; echo strtotime("10 September 2000"), "\n"; echo strtotime("+1 day"), "\n"; echo strtotime("+1 week"), "\n"; echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n"; echo strtotime("next Thursday"), "\n"; echo strtotime("last Monday"), "\n"; ?> Replace strtotime with date_create. Link to comment https://forums.phpfreaks.com/topic/59915-php-datetime-help/#findComment-297960 Share on other sites More sharing options...
AndyB Posted July 14, 2007 Share Posted July 14, 2007 http://ca.php.net/manual/en/function.date-create.php Only in php 5 Link to comment https://forums.phpfreaks.com/topic/59915-php-datetime-help/#findComment-298287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.