Class CXmlDateUtil
java.lang.Object
de.hybris.platform.b2b.punchout.util.CXmlDateUtil
Date utility for parsing and formatting
Date objects in accordance with the cXML standard.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatDate(ZonedDateTime date) Formats aZonedDateTimeinstance into aString.formatDate(Date date) parseString(String dateString) Parses a string into a date following the cXML specification.
-
Constructor Details
-
CXmlDateUtil
public CXmlDateUtil()
-
-
Method Details
-
parseString
Parses a string into a date following the cXML specification.- Parameters:
dateString- the date String- Returns:
- a parsed
Dateobject - Throws:
ParseException- when parsing failure occurs
-
formatDate
- Parameters:
date- the date to use- Returns:
- the String representation
-
formatDate
Formats aZonedDateTimeinstance into aString.- Parameters:
date- the date to use- Returns:
- the String representation
-