antonyjohn Posted August 1, 2007 Share Posted August 1, 2007 how to find out the day difference bettween two dates.user inputs both dates Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.