Solved

JavaScript get timespan in minutes between 2 dates

Posted on 2012-03-28
3
2,354 Views
Last Modified: 2012-03-30
Hi all

Could anyone share an example of obtaining the timespan in minutes between 2 dates?

Many thanks,

Rit
0
Comment
Question by:rito1
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 37779421
Well, I would start with these articles:
Can I have a date? http://e-e.com/A_484-Can-I-have-a-date.html 
2 Dates - What's the difference: http://e-e.com/A_483-2-Dates-What%27s-the-difference.html

The first explains the JavaScript date object, and the second talks about determining the difference but stops at the level of # of days.
0
 
LVL 1

Author Closing Comment

by:rito1
ID: 37786247
Brilliant thank you.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 37786577
Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now