English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
getDate()Returns the day of the month for the specified date object according to local time (1-31).
For the day of the week, seegetDay()Method.
date.getDate()
var d = new Date(); d.getDate();Test and See‹/›
All browsers fully support the getDate() method:
Method | |||||
getDate() | is | is | is | is | is |
Return Value: | 1to31an integer between the two represents a specific day of the month |
---|---|
JavaScript Version: | ECMAScript 1 |
Return the date of the month from a specific date:
var d = new Date('August 20, 1999 23:15:30'); d.getDate();Test and See‹/›