Tutorials » Javascript tutorials »

Date object's' getDate() method

This article explains about Date object getDate() method


Returns the day of the month in a specified Date.




function f()


var date = new Date()






<input type ="button" value ="Click to get today's day" onclick ="return f();" >


As getDate returns current day between 1 to 31 , the above code produces today's day as output.

Note that it returns date of client not server.

Next Chapter: Javascript date object's getMonth()
Previous Chapter: The Date Object
More Chapters: Javascript Tutorials
More Tutorials: Tutorial Index

Top Contributors
    Last 7 Daysmore...

    Awards & Gifts

    Online Members

    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India