Microsoft® JScript
toLocaleString Method

See Also

Language Reference 

Description

Converts the date to a string using the current locale.

Syntax

dateObj.toLocaleString( )

Remarks

The toLocaleString method returns a string object that contains the date written in the current locale's default format. The format of the return value depends on the current locale. For example, in the United States, toLocaleString may return "01/05/96 00:00:00" for January 5, but in Europe, it may return "05/01/96 00:00:00" for the same date, as the European convention puts the day before the month.


© 1996 by Microsoft Corporation.

Casa de Bender