Date.prototype.toJSON ( )

The toJSON method returns a String value that represents the instance in time that corresponds to the current Date object. All fields are present in the String. The time zone is always specified in UTC, denoted by the suffix Z. If this time value is not finite, null is returned.

This method is only defined for JScript 5.8.