stig1 Posted December 13, 2010 Share Posted December 13, 2010 Hey guys, What i would like to create is the ability to calculate the difference between two dates / times. For example: 2010-12-13 10:00:00 to 2010-12-17 17:00:00 In a format of days / hours and minutes / seconds. However, I only want to calculate for an 9-5 work day, not the hours outside. Is this possible? If so, how would I go about creating something like this. Link to comment https://forums.phpfreaks.com/topic/221488-date-time-difference/ Share on other sites More sharing options...
anups Posted December 13, 2010 Share Posted December 13, 2010 Good solutions follow the links below http://stackoverflow.com/questions/336127/calculate-business-days http://www.phpclasses.org/package/3453-PHP-Calculate-business-days-between-dates.html http://snippets.dzone.com/posts/show/807 Link to comment https://forums.phpfreaks.com/topic/221488-date-time-difference/#findComment-1146586 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.