Hi folks. I am working on a time tracker app and really need some help.
What I want to have is two date/time picker elements where the user can select start date and time for a project and then end date and time for that project. Based on those dates and times I would like to have an output which will be the number of working hours between those two dates.
So lets say my working days are Mon-Friday 9:00 to 18:00 - so I have 5 working days and each day is 9 working hours.
So if a user picks start date to be a Friday at 11:00 and end date to be Tuesday 16:00 the result that I need is 23 hours (because I exclude weekend and also I don’t want to count hours outside of working hours)
Please any ideas on how to do this will be extremely appreciated !!!