JavaScript Tutorial/Date/getDate
Date.getDate()
The getDate() method returns the day of the month expressed as an integer from 1 to 31.
<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
dateVar = new Date();
alert(dateVar.getDate());
// -->
</script>
</head>
<body>
</body>
</html>