I get 2 values from user start time and end time. I want to validate both. if start time is greater than end time then fire an error message. or convert time into minutes
Now the problem is time can be negative like -10:00. the main problem occurs dealing with time like -00:22.
my logic is spliting time in hr and min. and then convert it into minute.
but when i convert -00 into integer to convert into hours ( hr*60) it returns 0 not -0.
how to do that?
plz help or if any other way to do that?