Class: UTCConverter

UTCConverter

A converter that converts dates to a UTC string in ISO8601 format.

Constructor

new UTCConverter()

Source:

Methods

onSave(date) → {string}

Convert JavaScript Date object to a UTC string fit for saving.
Parameters:
Name Type Description
date Date A native JavaScript Date object.
Source:
Returns:
An ISO8601 representation of the string, in zulu (UTC) time, or null if date is null or undefined.
Type
string