Hi DW, I'm trying to mark attendance register which has the date for which that register is being marked for as well as the date which the register is actually marked on.
For Date as well as Marked Date.
I also have two time picker textboxs which one is for time in and the other is for time out.
Now I've been trying to use even time diff to get time difference between the two times provided but there are issues, basically timediff doesn't seem to work proper it also bring like 18 where it means to bring 8,there's always that first digit which confuses everything.
Another problem is that the register can be marked for anytime meaning it can also be marked for let say 20:00 to 05:00AM the next day morning also it can be marked for 02:00AM to 11:00AM which means the shift started from 2 in the morning to 11 am of the same day and so on.
Basically it can be for anytime at and day and it can even cross days now the problem is also properly calculating how many hours and minutes apart.
Does anyone know a way to tackle this as I've said I've tried using time difference but it's not working as it should.