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? 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) 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" Link to comment https://forums.phpfreaks.com/topic/143493-date-calculations/#findComment-752715 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.