dadamssg Posted February 2, 2009 Share Posted February 2, 2009 how do i calculate how many days are between two dates using php, not mysql? Quote Link to comment https://forums.phpfreaks.com/topic/143493-date-calculations/ Share on other sites More sharing options...
rhodesa Posted February 2, 2009 Share Posted February 2, 2009 subtract the timestamps and divide by 86400 (number of seconds in a day) Quote Link to comment https://forums.phpfreaks.com/topic/143493-date-calculations/#findComment-752713 Share on other sites More sharing options...
premiso Posted February 2, 2009 Share Posted February 2, 2009 http://snipplr.com/view/2223/get-number-of-days-between-two-dates/ First result of googling "Days between dates php" Quote Link to comment https://forums.phpfreaks.com/topic/143493-date-calculations/#findComment-752715 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.