setDayOfMonth()

Sets the value of the Day of Month calendar field.

Syntax

Calendar setDayOfMonth(Numeric value)
  1. value is the day of month to set.

Usage

For example, set the value of the Day of Month calendar field by calling:
Calendar.fromDate(Date.parseString("05/08/1999","mm/dd/yyyy")).setDayOfMonth(12).toDate().format("mm/dd/yyyy")
This example populates a Word Box. To achieve the same goal and populate a Date box, call:
Calendar.fromDate(Date.parseString("05/08/1999","mm/dd/yyyy")).setDayOfMonth(12).toDate()