public final class DateUtils extends Object
This class is basically intended to be a high-performance workaround for the fact that Java SimpleDateFormat is kind of expensive to create and yet isn't thread safe.
This class was adapted from the class with the same name from the Jetty project, licensed under the terms of the Apache Software License 2.0.
| Modifier and Type | Method and Description |
|---|---|
static String |
formatDate(Date date)
Formats the given date according to the RFC 1123 pattern.
|
static <T> T |
notNull(T argument,
String name) |
static Date |
parseDate(String theDateValue)
Parses a date value.
|
public static Date parseDate(String theDateValue)
theDateValue - the date value to parsepublic static String formatDate(Date date)
date - The date to format.PATTERN_RFC1123Copyright © 2014–2019 University Health Network. All rights reserved.