So storing a time of day as something like moment('0001-01-01T09:30+00:00') again seems rather hackish to me. JavaScript Tutorial: JavaScript Date Formats. JavaScript Tutorial: JavaScript Dates. Use Momentjs String + Format parsing function. JavaScript Tutorial: JavaScript Strings We can test this in the browser by creating a new variable and assigning to it a new Date instance based on a timestamp of 0 . JavaScript, without any information about the timezone, will consider the date as UTC, and will automatically perform a conversion to the current computer timezone. Syntax: dateObj.toString() Parameters: This method does not accept any parameter. This method was standardized in ECMA-262 5th edition. This means that two different computers might output a different value for the same date object. Syntax dateObj.toISOString() Return value. A time of day has no date or time zone attached to it. The format() method of this object is used to return a string of the date with the specified locale and formatting options. Output: Tue Oct 15 1996 05:35:32 GMT+0530 (India Standard Time) The date.toString() method is used to convert the given date objectâs contents into a string.The date object is created using date() constructor. Letâs meet a new built-in object: Date. To create a new Date object call new Date() with one of the following arguments: new Date() There are a few options. This will format the date to the timezone required and return a string with the converted date. Engines which have not been updated to support this method can work around the absence of this method using the following shim: The toUTCString() method converts a date to a string, using the UTC time zone. If you donât intend to support