Date
Parameters
the year
the month
the day of the month
Throws
if the year or day is invalid
Constructors
Types
Functions
Returns this date with centuries subtracted from it.
Returns this date with days subtracted from it.
Returns this date with decades subtracted from it.
Returns this date with months subtracted from it.
Returns this date with period subtracted from it.
Returns this date with weeks subtracted from it.
Properties
Extensions
Combines a local date with a time and UTC offset to create an OffsetDateTime.
Creates a progression of dates in descending order.
The ZonedDateTime at the last representable instant of the day in zone, taking into account any daylight savings transitions.
The date at the end of the month that this date falls in.
The date at the end of the ISO week that this date falls in.
The date at the end of the week that this date falls in. The first day of the week will be determined by settings. The first day of the week will be determined by the system settings. The first day of the week will be determined by the system settings. This may differ from the first day of the week associated with the default locale on platforms that allow this to be customized.
Checks if this date falls within a leap year.
The length of this date's month in days.
The length of the ISO week-based year that this date falls in, either 52 or 53 weeks.
The length of this date's year in days.
The next date that falls on dayOfWeek, or this date if it falls on the same day.
The previous date that falls on dayOfWeek, or this date if it falls on the same day.
The DateTime at the start of the day. Daylight savings transitions are not taken into account, so the returned date-time may not necessarily exist in all time zones.
The ZonedDateTime at the start of the day in zone, taking into account any daylight savings transitions.
The date at the start of the month that this date falls in.
The date at the start of the year that this date falls in.
Converts this date to an equivalent Java LocalDate.
Converts this date to an equivalent NSDateComponents object.
Converts this date to an ISO week date representation.
Converts this date to a week date representation using the week definition in settings.
Returns this date with the precision reduced to the month.
The week-based year used in the ISO week date system. This value differs from the regular ISO year when the week number falls in the preceding or following year.
The week-based year, calculated using the week definition in settings. This value differs from the regular ISO year when the week number falls in the preceding or following year.
The week-based year, calculated using the week definition associated with the provided locale. This value differs from the regular ISO year when the week number falls in the preceding or following year.
The week number used in the ISO week date system.
The week number of the week-based year, calculated using the week definition in settings.
The week number of the week-based year, calculated using the week definition associated with the provided locale.
The week of the year, calculated using the ISO week definition. If the week number is associated with the preceding year, 0 will be returned.
The week of the year, calculated using the week definition in settings. If the week number is associated with the preceding year, 0 will be returned.
The week of the year, calculated using the week definition associated with the provided locale. If the week number is associated with the preceding year, 0 will be returned.