/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: toDateString()

[this page | pdf | back links]

The toDateString() method (when applied to a JavaScript date) returns the date portion as a string.

 

It has the following syntax (with no parameters):

 

date.toDateString()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile