Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

JavaScript get timespan in minutes between 2 dates

Posted on 2012-03-28
3
2,379 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

856 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