JavaScript:Date

The Date object is used to process dates and times, based on the number of milliseconds since January 1, 1970 (Coordinated Universal Time).

1. Create a Date object

var myDate=new Date()

The Date object will automatically save the current date and time as its initial value.

2. Common methods

!](https://img-blog.csdnimg.cn/20210305193420749.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxNTA0ODE1,size_16,color_FFFFFF,t_70)

Guess you like

Origin blog.csdn.net/qq_41504815/article/details/114409994
Recommended