Class: DateTime

DateTime

new DateTime(datetime)

Simple wrapper around internal JavaScript Date object. Allows you to print date as a string in ISO 8601 format.

Parameters:
Name Type Description
datetime String
Source:
  • app/model/DateTime.js, line 10

Methods

getDateObject() → {Date}

Returns internal Date object.

Source:
  • app/model/DateTime.js, line 44
Returns:
Type
Date

setDateTime(datetime)

Parses given datetime string and cretes internal Date object.

Parameters:
Name Type Description
datetime String | Date | undefined

if not defined sets current date and time

Source:
  • app/model/DateTime.js, line 25

toString() → {String}

Returns internal datetime in ISO 8601 format.

Source:
  • app/model/DateTime.js, line 53
Returns:
Type
String