Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!
Get Date

Description

The getDate() method returns the day of the month (from 1 to 31) for the specified date, according to local time.

This method has the form:

Date.getDate()

Examples

The following example shows the basic use of this method.

<script>
var d = new Date();
document.write(d.getDate());
</script>

This produces the following result:

Browser Support

Firefox IE Chrome Opera Safari