date.dateToIso8601String

Syntax date.dateToIso8601String (d)

Params d is a valid Frontier date or a string that can be coerced to a date.

Action Given the date, return it as an ISO 860 formatted string.

Returns Return the given date as an ISO 8601 formatted string.

Examples date.dateToIso8601String (clock.now ())

   » "2003-02-12T18:25:38-08:00"

Notes See the W3C Date and Time Formats specification.

See Also date.iso8601StringToDate

Discuss