public final class ISO8601DateParser extends Object
Modifier and Type | Method and Description |
---|---|
static Date |
parse(String dateString)
Parse the given string in ISO 8601 format and build a Date object.
|
static String |
toString(Date date)
Generate a ISO 8601 string representation of the specified date.
|
public static Date parse(String dateString) throws ParseException
dateString
- ISO8601 date string to convert. Non-null.IllegalArgumentException
- If dateString is null.ParseException
- If the supplied string is not valid according
to ISO8601public static String toString(Date date)
date
- The date to create string representation of. Non-null.IllegalArgumentException
- If date is null.Copyright © 2023 Petroware AS - https://petroware.no