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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.