Home Reference Source
public class | source

DateTime

Extends:

Date → DateTime

An extenion of Date to DateTime

Method Summary

Public Methods
public

Returns the milliseconds since the date was created to now

public

Returns the date and time in the YYYY-mm-DD format

public

Return the date and time in the YYYY-mm-DD HH:MM:ss format

public

Returns the date and time in the HH:MM:ss format

Public Methods

public elapsedTime(): String source

Returns the milliseconds since the date was created to now

Return:

String

public toDate(): String source

Returns the date and time in the YYYY-mm-DD format

Return:

String

public toString(): String source

Return the date and time in the YYYY-mm-DD HH:MM:ss format

Return:

String

public toTime(): String source

Returns the date and time in the HH:MM:ss format

Return:

String