How can I calculate time difference in JScript between two times in milliseconds or seconds?
For example, between 2010-04-23 15:03 and 2010-05-30 00:41
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, you should parse the strings to obtain date objects, I generally use a function like the following, to extract the date parts, and use the
Dateconstructor: