JavaScript: The Definitive Guide

24.44. Date.setDate( ): set the day-of-the-month field of a Date

ECMAScript v1

24.44.1. Synopsis

date.setDate(day_of_month)

24.44.1.1. Arguments

day_of_month

An integer between 1 and 31 that is used as the new value (in local time) of the day-of-the-month field of date.

24.44.1.2. Returns

The millisecond representation of the adjusted date. Prior to ECMAScript standardization, this method returns nothing.

Категории