dayOfMonth
dayOfMonth returns the integer value of the day of the month for an input date-time and specified time zone.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| instant | Instant | The Instant for which to find the day of the month. |
| timeZone | ZoneId | The time zone to use when interpreting the date-time. |
| dateTime | ZonedDateTime | The zoned date-time for which to find the day of the month. |
| localDateTime | LocalDateTime | The local date-time for which to find the day of the month. |
| localDate | LocalDate | The local date for which to find the day of the month. |
Returns
Returns a 1-based int value of the day of the month.