Combines this date with the time of midnight to create a ZonedDateTime at the start of this date.
Returns a zoned date-time from this date at the earliest valid time according to the rules in the time-zone.
Combines this date with the time of midnight to create a LocalDateTime at the start of this date.
Combines this date with a time to create a LocalDateTime.
Optional
hour: numberOptional
minute: numberCombines this date with a time to create a LocalDateTime.
Optional
hour: numberOptional
minute: numberOptional
second: numberCombines this date with a time to create a LocalDateTime.
Optional
hour: numberOptional
minute: numberOptional
second: numberOptional
nanoOfSecond: numberCombines this date with a time to create a LocalDateTime.
Optional
time: LocalTimeCombines this date with an offset time to create an OffsetDateTime.
Optional
time: OffsetTimeCompares this date to another date.
Formats this date using the specified formatter.
Gets the value of the specified field from this date as an int.
Gets the value of the specified field from this date as a long.
Checks if this date is after the specified date.
Checks if this date is before the specified date.
Checks if this date is equal to the specified date.
Checks if the specified field is supported.
Checks if the specified unit is supported.
Returns a copy of this date with the specified amount subtracted.
Returns a copy of this date with the specified amount subtracted.
Returns a copy of this date with the specified amount added.
Returns a copy of this date with the specified amount added.
Queries this date using the specified query.
Gets the range of valid values for the specified field.
Calculates the period between this date and another date as a Period.
Calculates the amount of time until another date in terms of the specified unit.
Returns an adjusted copy of this date.
Returns a copy of this date with the specified field set to a new value.
Returns a copy of this LocalDate with the day-of-month altered.
NOTE: this method does not accept negative numbers and will throw an exception if the day of month is invalid for the relevant month
the day-of-month to set in the result, from 1 to 28-31
If you want the last day of the month
B.time.LocalDate.now().withDayOfMonth(1).plusMonths(1).minusDays(1)
Static
fromObtains an instance of LocalDate from a temporal object.
Static
nowObtains the current date from the system clock in the default time-zone.
Obtains the current date from the specified clock.
Optional
clock: ClockObtains the current date from the system clock in the specified time-zone.
Optional
zone: ZoneIdStatic
ofObtains an instance of LocalDate from a year, month and day.
Obtains an instance of LocalDate from a year, month and day.
Static
ofStatic
ofStatic
ofStatic
parseObtains an instance of LocalDate from a text string such as 2007-12-03.
Optional
formatter: DateTimeFormatterGenerated using TypeDoc
A date without a time-zone in the ISO-8601 calendar system, such as 2007-12-03.
See java.time.LocalDate for full documentation