public final class XSDHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Date |
getDateFromString(String sDateTime)
Gets a Date representation of a String that conforms to the xsd:dateTime format defined in
XML Schema.
|
static Date |
getDateFromStringWithTZOffset(String sDateTimeZ) |
static String |
getStringFromDate(Date date)
Gets a String representation of a Date, conforming to the xsd:dateTime format defined in XML
Schema.
|
public static Date getDateFromString(String sDateTime) throws InvalidValueException
sDateTime - the string to convertInvalidValueException - if the given string was not of the proper xsd:dateTime formatpublic static String getStringFromDate(Date date)
date - the date to convertpublic static Date getDateFromStringWithTZOffset(String sDateTimeZ) throws InvalidValueException, ParseException
InvalidValueExceptionParseExceptionCopyright © 2003, 2021, Oracle and/or its affiliates.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.