/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: getDate()

[this page | pdf | back links]

The getDate() method (when applied to a JavaScript date) returns the day of the month (1 to 31).

 

It has the following syntax (with no parameters):

 

date.getDate()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile