contents   index   previous   next



Date toLocaleDateString()

syntax:

date.toLocaleDateString()

return:

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

 

description:

This function behaves in exactly the same manner as Date toDateString(). This function is designed to take in the current locale when formatting the string. Locale reflects the time zone of a user.

 

see:

Date toString(), Date toLocaleTimeString(), Date toLocaleString()

 

example:

var d = new Date();

var s = d.toLocaleDateString();

 


Date toLocaleString()