toJSON :: Date

toJSON() -> String

 

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

 

new Date(1969, 11, 31, 19).toJSON();

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


Prototype API 1.5.0 - prototypejs.org