setDate
Summary
Sets the day of the month for the System.Date
object according to local time.
Usage
public double setDate(int dayOfMonth)
Returns
The current time value of the System.Date
object, which
represents the difference in milliseconds from the updated
date/time and 1 January 1970 00:00:00:00 UTC.
Parameters
- dayOfMonth
An integer value representing the day of the month.
Description
Sets the day of the month for the System.Date
object according to
local time.
Examples
1 2 3 4 5 6 | import System; Date d = new Date(2011, Date.Month.FEB, 10, 5, 30, 59, 100); Console.log(d.getDayOfMonth()); // 10 d.setDate(12); Console.log(d.getDayOfMonth()); // 12 |
Share
HTML | BBCode | Direct Link