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.
Who is Participating?
HonorGodSoftware EngineerCommented:
This article explains how to compute the difference between 2 dates... including hours, minutes.
HonorGodSoftware EngineerCommented:
Thanks for the grade & points.

Good luck & have a great day.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.