DateTime.setDate

Sets the receiver's year, month, and day in a single operation. <p> This is the recommended way to set the date, because setting the year, month, and day separately may result in invalid intermediate dates. </p>

@param year an integer between 1752 and 9999 @param month an integer between 0 and 11 @param day a positive integer beginning with 1

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@since 3.4

class DateTime
void
setDate
(
int year
,
int month
,
int day
)

Meta