I need to calculate the difference in time in two cells using javascript cell one is called DateTimeField1 and cell two is called DateTimeField2 - the time fields could go over nights ie start time 17:00 and finish time 07:00. I am using Livecycle ES2 Can someone help please?
Asked
Active
Viewed 34 times
0
-
Do you have any code already? – P.S. Nov 17 '16 at 08:51
-
yes lot of people can help. But i dont think they will until you Post your code dude what you have tried. – Manish Nov 17 '16 at 08:52
-
http://stackoverflow.com/questions/1787939/check-time-difference-in-javascript – Emil S. Jørgensen Nov 17 '16 at 09:22
-
You can calculate the difference in their timestamps using `getTime()` i.e `DateTimeField2.getTime() - DateTimeField1.getTime()`. Then from the difference, you can find time diff. in your unit. – Aniket Sinha Nov 17 '16 at 09:42