Share via


toLocaleDateString Method (JScript 5.6) 

Returns a date as a string value appropriate to the host environment's current locale.


objDate.toLocaleDateString( )

Remarks

The required objDate reference is a Date object.

The toLocaleDateString method returns a string value that contains a date, in the current time zone, in an easily read format. The date is in the default format of the host environment's current locale. The return value of this method cannot be relied upon in scripting, as it will vary from computer to computer. The toLocalDateString method should only be used to format display – never as part of a computation.

Requirements

Version 5.5

Applies To: Date Object (JScript 5.6)

See Also

Reference

toDateString Method (JScript 5.6)
toLocaleTimeString Method (JScript 5.6)