Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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'.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
217 views
Welcome To Ask or Share your Answers For Others

1 Answer

In javascript getTime() return the number of milliseconds since 1970/01/01.

This link is answer for your question DateTime to javascript date


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...