contents   index   previous   next



Date toDateString()

syntax:

date.toDateString()

return:

string - representation of the date portion of the current object.

 

description:

Returns the Date portion of the current date as a string. This string is formatted to read "Month Day, Year", for example, "May 1, 2000". This method uses the local time, not UTC time.

 

see:

Date toString(), Date toTimeString(), Date toLocaleDateString()

 

example:

var d = new Date();

var s = d.toDateString();

 


Date toGMTString()