Three Date
New Date () the newly created object automatically obtains the current date and time without passing parameters. Timestamp of the parameter receive milliseconds
Date.parse () receives a string representing the date, returning the corresponding number of milliseconds timestamp. Date strings are formatted differently depending on the browser locale. If the passed-in string cannot be resolved, a Nan is returned
The parameters received by DATE.UTC () are year, based on month 0 for January, date of month, 1-31, hour, 0-23, minute, second, millisecond. These parameters are required only for the year and month.
1. Methods of inheritance
Tolocalstring () returns the date and time in a format that is compatible with the locale of the browser
ToString () typically returns a date and time with time zone information, where time is typically expressed in military time.
ValueOf () does not return a string, but instead returns a millisecond representation of the date. You can therefore use comparison operators to compare date values directly
JavaScript Learning Notes-Reference type Date