public final class AdaptableDateParser extends Object
String
and converting it to an AdaptableDate
.
parse(java.lang.String)
method.Modifier and Type | Field and Description |
---|---|
private static String |
__AGO |
private static String |
__CURRENT |
private static String |
__IN |
private static String |
__SPECIAL_CHAR |
Modifier | Constructor and Description |
---|---|
private |
AdaptableDateParser() |
Modifier and Type | Method and Description |
---|---|
static AdaptableDate |
parse(String value)
Parses the given
String as an AdaptableDate
It accepts the following syntax: 2019-01-01T09:30:00+01:00 to have a static date (based on the DateTimeFormatter.ISO_DATE_TIME format)
$current to have the current date
$ago$2$Minutes to have a date in the past
$in$3$Weeks to have a date in the future
|
private static final String __SPECIAL_CHAR
private static final String __CURRENT
private static final String __AGO
private static final String __IN
private AdaptableDateParser()
public static final AdaptableDate parse(String value)
String
as an AdaptableDate
2019-01-01T09:30:00+01:00
to have a static
date (based on the DateTimeFormatter.ISO_DATE_TIME
format)$current
to have the current
date$ago$2$Minutes
to have a date in the past
$in$3$Weeks
to have a date in the future
value
- The string value to parseAdaptableDate
IllegalArgumentException
- if the string value cannot be parsed as an AdaptableDate