isoDate()

Gets the date in the ISO-8601 standard format: YYYY-MM-DDTHH:mm:ss.sssZ

This function is valid in v2.1.0 to v2.24.3. This function has been downloaded 61 times.

Parameter

{Date=} opt_date Optional, Default:new Date()
Date to convert to ISO-8601 format. If not given the current date/time is used.

Returns

{string}
opt_date as a string in the ISO-8601 format: YYYY-MM-DDTHH:mm:ss.sssZ