Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
V0169:
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 that corresponds to the conventions of the host environment's current locale.
For JScript 5.x running on Windows, the string is determined as follows:
Using the system locale settings, get the local time value corresponding to the date value. This may include applying any appropriate civil time adjustments.
If the year of Result(1) is <= 1600 or >= 10000, then return the result of calling the standard built-in Date.prototype.toString with Result(1) as its this object.
Use the Microsoft Windows GetDateFormat system function to format the date and time corresponding to Result(1). The format flags passed to the function is DATE_LONGDATE for most locales. However, if the current locale's language is Arabic or Hebrew the flags passed are DATE_LONGDATE | DATE_RTLREADING.
If the call in step 3 failed and the current locale language is Hebrew, then throw a RangeError exception.
If the call in step 3 failed, then return the result of calling the standard built-in Date.prototype.toString with Result(1) as its this object.
Return the string value that is Result(3).