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 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 formatCopyright © 2003, 2020, 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.