public final class DateParser
extends Object
Parses a date
-
Method Summary
| Modifier and Type |
Method |
Description |
static Date |
parse(String v) |
Parses the date
|
static String |
print(Date v) |
Prints the date according to the format "yyyy-MM-dd'T'HH:mm:ss'Z'"
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
parse
Parses the date
- Parameters:
v - String date in the format "yyyy-MM-dd'T'HH:mm:ss'Z'"
- Returns:
Date, null if not able to parse
-
print
Prints the date according to the format "yyyy-MM-dd'T'HH:mm:ss'Z'"
- Parameters:
v - Date
- Returns:
String