ES6 - getDate() Method


Advertisements


JavaScript date getDate() method returns the day of the month for the specified date according to local time. The value returned by getDate is an integer between 1 and 31.

Syntax

Date.getDate() 

Return Value

Returns today's date and time.

Example

var dt = new Date("December 25, 1995 23:15:00"); 
console.log("getDate() : " + dt.getDate() );  

Output

getDate() : 25 

es6_date.htm

Advertisements