JavaScript Date getDate() methodThe JavaScript date getDate() method returns the day for the specified date on the basis of local time. SyntaxThe getDate() method is represented by the following syntax: ReturnAn integer value between 1 and 31 that represents the day of the specified date. JavaScript Date getDate() method exampleHere, we will understand getDate() method through various examples. Example 1Let's see an example to print today's date. Test it NowOutput: Today's day: 16 Example 2Let's see an example to print the day from the given date. Test it NowOutput: 15 Next TopicJavaScript Math |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India