i want convert a datetime variable in ASP.NET MVC to milliseconds,for example like to this:
‘1288323623006’
which ‘1288323623006’ in javascript with this format ‘yyyy-MM-dd HH:mm:ss Z’ means ‘ 2010-10-29 07:10:23 -3.530’.
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.
In javascript
getTime()return the number of milliseconds since 1970/01/01.This link is answer for your question DateTime to javascript date