Следите за новинками
в нашем Telegram канале. Жми, чтобы подписаться:)
125 of 264 menu
◀ ▶

getDate method

The getDate method is applied to the date object and returns the number of the current day of the month. Day numbering starts from 1.

Syntax

date.getDate();

Example

Let's output the number of the current day:

let date = new Date(); let res = date.getDate(); console.log(res);

Example

Let's output the day for the given date:

let date = new Date(2025, 11, 31); let res = date.getDate(); console.log(res);

The code execution result:

31

See also

← →
↑
English▼
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline