I am using telerik controls and i want difference between two datetime variables how can i calculate.
var x=9/1/2012 10:20:00 AM;
var y=9/1/2012 09:00:00 AM;
I want difference between two times throw javascript in to another variable as number.
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.
Create two Date type variable and then calculate the difference using
-operator, you will get difference in milliseconds.Here is working demo