next up previous contents
Next: Math Up: Methods Previous: toGMTString   Contents


toLocaleString

Description

Converts the date to a string using the current locale.


Syntax

Date1.toLocaleString( )


Parameters

None


Returns

A string object


Example

d = new Date(Date.UTC(1989, 11, 28, 10, 30, 5));
trace(d.toLocaleString());
//output: Thu Dec 28 18:30:05 GMT+800 (中国标准时间) 1989




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.