logo

/Doc|v1.1.1

External

Date()external.jsline 1

The built in date object

SEES

Static Methods

now()external.jsline 1

Returns the numeric value corresponding to the current time - the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC, with leap seconds ignored.

EXAMPLES
const date = Date.now();

console.log(date); // 1566379209918

Instance Methods

getDate()external.jsline 1

Returns the day of the month (1-31) for the specified date according to local time.

EXAMPLES
const birthday = new Date('August 19, 1975 23:15:30');
const date = birthday.getDate();

console.log(date); // 19
Resizable