/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: toString()

[this page | pdf | back links]

The toString() method (when applied to a JavaScript date) returns the date (and time) as a string.

 

It has the following syntax (with no parameters):

 

date.toString()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile