Hi
I am using 24hours time format. And able to retrive the working hours and minutes within the time schedule from 1 am to 24 pm but if the shift start from 20 hrs to 6 am than unable to calculate the time ..
Pls help how solve the problemCode:Dim TotalHours As Double Dim TotalMinutes As Double TotalMinutes = DateDiff(DateInterval.Minute, CDate(txtShiftFrom.Text), CDate(txtShiftto.Text)) TotalHours = Math.Round(TotalMinutes / 60, 0) txtTotalWorkingHours.Text = TotalHours txtMinutes.Text = TotalMinutes




Reply With Quote