toJSON :: Date

toJSON() -> String

 

Converts the date into a JSON string (following the ISO format used by JSON).

 

new Date(1969113119).toJSON();

//-> '"1969-12-31T19:00:00"'


Prototype API 1.5.0 - prototypejs.org