Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Date Object toLocaleString Method

Converts the date to a string using the current locale.

Syntax: JScript Date Object toLocaleString Method

dateObj.toLocaleString( )

Arguments: JScript Date Object toLocaleString Method

objDate

The name of a Date object. Required.

Remarks: JScript Date Object toLocaleString Method

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 European convention puts the day before the month.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.