How do I format a Javascript Date?

后端 未结 11 1540
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 07:55

How do I format this date so that the alert displays the date in MM/dd/yyyy format?



        
11条回答
  •  醉话见心
    2020-12-03 08:29

    Just another option:

    DP_DateExtensions Library

    Not saying it's any better than the other options, but I like it (of course I'm not completely unbiased).

提交回复
热议问题