Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2503
  • Last Modified:

JavaScript get timespan in minutes between 2 dates

Hi all

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

Many thanks,

Rit
0
rito1
Asked:
rito1
  • 2
1 Solution
 
HonorGodCommented:
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
 
rito1Author Commented:
Brilliant thank you.
0
 
HonorGodCommented:
Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now