2.1.40 [ECMA-262/5] Section 18.104.22.168, Date.prototype.toString ()
The specification states:
This function returns a String value. The contents of the String are implementation-dependent, but are intended to represent the Date in the current time zone in a convenient, human-readable form.
IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)
The returned String value of the Date.prototype.toString method is determined from the following steps:
Let tv be the time value.
If tv is NaN, return the string "
Let t be LocalTime(tv).
Using t, create a string value that has the following format, according to the items that are defined in the following table:
The following table defines the variables in the string value that is referenced in the preceding steps.
The day of the week abbreviation from the following set:
A single space character.
The month name abbreviation from the following set:
The day of the month as a one-decimal or two-decimal number, from
The number of complete hours since midnight as a two-decimal number.
The colon character.
The number of complete minutes since the start of the hour, as a two-decimal number.
The number of complete seconds since the start of the minute, as a two-decimal number.
zzz or zzzzzzzz
If the local time offset from UTC is an integral number of hours between -8 and -5 inclusive, this item is the standard abbreviation for the corresponding North American time zone. This time zone is one of the following set:
If YearFromTime(t) is greater than 0, this item is three or more digits from the value of YearFromTime(t). Otherwise, this item is the one or more numbers that correspond to the number that is 1-YearFromTime(t) followed by a single space character and then followed by
The comma character.
The literal characters