robert_gsfame Posted August 3, 2010 Share Posted August 3, 2010 how to compare date with current date let say $date="2010-10-08 2:00 PM" how can i compare $date with current date and get the result in days, hours, minutes and seconds thx Link to comment https://forums.phpfreaks.com/topic/209635-compare-date/ Share on other sites More sharing options...
ameyemad Posted August 3, 2010 Share Posted August 3, 2010 I usally use the strtotime function.. http://php.net/manual/en/function.strtotime.php Some handy examples there too. Link to comment https://forums.phpfreaks.com/topic/209635-compare-date/#findComment-1094442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.