In my attendance portal, employee marks the attendance by giving CheckIn time and CheckOut time. I am using Bootstrap datetimepicker Where the time format is in 12 Hour (AM , PM). i want to calculate the total working hours per day of the employee but i'm facing the datetime format issues. So how can i calculate the total working hours per day of the employee when the format is in 12 hours (AM , PM)
Suppose employee's Checkin time is 09:30 AM and CheckOut time is 06:30pm. So how can i perform the operation to calculate the total working hours while the format is in AM PM