public final class LocalDateHelper extends Object
Modifier and Type | Field and Description |
---|---|
static LocalDate |
TWO_DIGIT_YEAR_BASE_DATE |
Constructor and Description |
---|
LocalDateHelper() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(LocalDate d1,
LocalDate d2)
Compare two LocalDate instances, handling null values.
|
static int |
compare(LocalDate startDate,
LocalDate endDate,
LocalDate targetDate)
Determine if the target date is within the range specified by the start and end date.
|
static LocalDateTime |
getDayEndDate(LocalDate date)
Returns a new Date instance whose value
represents the end of the day (i.e.
|
static LocalDate |
getLocalDate(LocalDateTime date)
Convert a LocalDateTime instance to a LocalDate instance, handling null values.
|
static LocalDateTime |
getLocalDateTime(LocalDate date)
Convert a LocalDate instance to a LocalDateTime instance,
handling null values.
|
public static final LocalDate TWO_DIGIT_YEAR_BASE_DATE
public static LocalDateTime getLocalDateTime(LocalDate date)
date
- LocalDate instancepublic static LocalDate getLocalDate(LocalDateTime date)
date
- LocalDateTimeInstancepublic static int compare(LocalDate d1, LocalDate d2)
d1
- LocalDate instanced2
- LocalDate instancepublic static int compare(LocalDate startDate, LocalDate endDate, LocalDate targetDate)
startDate
- range start dateendDate
- range end datetargetDate
- target datepublic static LocalDateTime getDayEndDate(LocalDate date)
date
- date to convertCopyright © 2000–2024 Packwood Software. All rights reserved.