Link to home
Start Free TrialLog in
Avatar of dilnot
dilnot

asked on

Calculating hours and minutes between two datetime values

Does anyone know of a simple javascript function that will calculate out how many hours and minutes between 2 dates.

The first date is stored in a database but is displayed in a field on a form.

The second date should be today date.

I have had a look at some scripts but they seem to complicated and I cannot work out how to compare with todays date, only with two entered dates.
ASKER CERTIFIED SOLUTION
Avatar of HonorGod
HonorGod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the grade & points.

Good luck & have a great day.