I have two time values on a page:
8:00
22:30
I need to subtract 8 from 22:30 and get 14:30.
Is there a straight forward way to do that in jQuery? Plug-ins are fine by me if they’re necessary.
Update:
The second number is a grand total so it could also be something like
48:45
Anything I subtract from it should just subtract the value from it as a total, not do any date related calculations.
You can do it in javascript.
Suppose you have
start = '8:00'andend = '22:30'. The code is as follows:In the end,
diffis your time difference.