I have a task to create a program where the user gives the Hour, Minute, Second, then he gives another Hour, Minute, Second then the program should substract the second date from the first one.
I have been trying to not use the date format, but I can't get it to work.
The date has to be in a 24h format, and these two dates have to be in the same day. So if I write 12:59:59
then I couldn't set the second date to 12:59:58
just 13:00:00
.