| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT_STRING
date format string that displays only date without time
|
| Modifier and Type | Method and Description |
|---|---|
static Date |
clearTime(Date date)
Returns the given date with the time part set to 0.
|
static boolean |
equalIgnoreTime(Date date1,
Date date2)
Compares the given dates for equality, ignoring time portion of the dates.
|
static String |
format(Date date)
Formats the date to a string using the
DATE_FORMAT_STRING format. |
static Date |
parse(String string)
Parses the string using the
DATE_FORMAT_STRING format. |
public static final String DATE_FORMAT_STRING
public static Date parse(String string) throws ParseException
DATE_FORMAT_STRING format.string - the string to parseParseException - if string cannot be parsedpublic static String format(Date date)
DATE_FORMAT_STRING format.date - the date to formatpublic static boolean equalIgnoreTime(Date date1, Date date2)
date1 - the first datedate2 - the second dateCopyright © 2025 European Spallation Source. All rights reserved.