Click here to Skip to main content
15,903,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 variable in javascript
var time1= 7:45 AM
var time2= 8:45 AM

Now i want to get total time means i want to subtract time how can i perform this
task in Javascript

I want this result :
var CalculateTime = time1 - time 2 ;

How can i do this please help ...
Posted
Updated 24-Jan-16 22:21pm
v3
Comments
dan!sh 25-Jan-16 4:22am    
There is a date type in JS. Have you explored it a little?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900