How can I get the OADate (OLE Automation date) in javascript? I need to pass my date object (to my web service) in the form of a double value.
in c#:
var d = DateTime.Now.ToOADate();
what is the equivalent in js?
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.
If you can’t modify the web service, you’ll have to re-implement
ToOADate().MSDN says,
Thus, you should be able to write something like
(untested)