antonyjohn Posted August 1, 2007 Share Posted August 1, 2007 how to find out the day difference bettween two dates.user inputs both dates Link to comment https://forums.phpfreaks.com/topic/62793-how-to-find-out-the-day-difference-bettween-two-datesuser-inputs-both-dates/ Share on other sites More sharing options...
Barand Posted August 1, 2007 Share Posted August 1, 2007 $days = (strtotime($date2) - strtotime($date1)) / 86400; Note that not all date formats work mm/dd/yyyy OK d-mmm-yy OK yyyy-mm-dd OK dd/mm/yyyy NO Link to comment https://forums.phpfreaks.com/topic/62793-how-to-find-out-the-day-difference-bettween-two-datesuser-inputs-both-dates/#findComment-312602 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.