public class LocalDateUtils extends Object
| Constructor and Description |
|---|
LocalDateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Date |
asDate(java.time.LocalDate localDate) |
static Date |
asDate(java.time.LocalDateTime localDateTime) |
static java.time.LocalDate |
asLocalDate(Date date) |
static java.time.LocalDateTime |
asLocalDateTime(Date date) |
static String |
getDateRangeStr(Date startDate,
Date endDate,
DateFormat dtf,
String rangeSeparator)
Prints a date range string using dash '_' as default range indicator.
|
public static Date asDate(java.time.LocalDate localDate)
public static Date asDate(java.time.LocalDateTime localDateTime)
public static java.time.LocalDate asLocalDate(Date date)
public static java.time.LocalDateTime asLocalDateTime(Date date)
public static String getDateRangeStr(Date startDate, Date endDate, DateFormat dtf, String rangeSeparator)
startDate - Start dateendDate - End datedtf - DateFormat. If none is selected (null), default locale (short) is used.rangeSeparator - Separates the start date from the end date. If null, _ is used.Copyright © 2021 Notima System Integration AB. All rights reserved.