contents   index   previous   next



Date toLocaleString()

syntax:

date.toLocaleString()

return:

string - locale-sensitive string representation of the current date.

 

description:

This function behaves in exactly the same manner as Date toString(). This function is designed to take in the current locale when formatting the string, though this functionality is currently unimplemented. Locale reflects the time zone of a user.

 

see:

Date toString(), Date toLocaleTimeString(), Date toLocaleDateString()

 

example:

var d = new Date();

var s = d.toLocaleString();

 


Date toLocaleTimeString()