2.1.106 [ECMA-262-1999] Section, Date.prototype.toDateString ()


This function returns a string value. The contents of the string are implementation-dependent, but are intended to represent the "date" portion of the Date in the current time zone in a convenient, human-readable form.

For JScript 5.x running on Windows, the string is determined as follows:

1. Let tv be this time value.

2. If tv is NaN, return the string "NaN".

3. Let t be LocalTime(tv).

4. Using t, create a string value with the following format, based upon the format description given in [ECMA-262-1999] Section The format is DDDbMMMbddbyyyyy.

5. Return Result(4).