Skip to content
Loading
  • 0
    @Tapan Patel
     
    The ouput was 13:00 
     
    So here's where user will input their time.
     
     
     
    Here's the situation, user will input any time they want and textbox will calculate their time duration.
     
    For example: 
    User insert 12:00 on the first Time Out and 13:00 on first Time In, the duration will be 1 hour or 01:00
    User insert 14:00 on the second Time Out and  15:00 on second Time In, the duration will also be 1 hour or 01:00
    The final duration will be between the first Time Out and the second Time In, the duration will be 3 hours or 03:00.
     
    Problem:
    Insert 12:00 on the first Time Out and 12:30 on the first Time In, the duration was 30 minutes or 00:30 (This is correct)
    Insert 13:00 on the second Time Out and 13:30 on the second Time In, the duration was 13 hours or 13:00 (This is very wrong)
    The final duration was 1 hours and 30 minutes or 01:30 (This is correct)
     
    Note:
    I can't find any solution of my problem here, tried suggestion from Ankit Sharma also can't show the right answer.
    All my dateTimePicker are set to custom format which is HH:mm.
    Hope you guys can really help me on this. 
    0