/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: toJSON()

[this page | pdf | back links]

The toJSON() method (when applied to a JavaScript date) returns the date as a string, using JSON notation.

 

It has the following syntax (with no parameters):

 

date.toJSON()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile