Class QuoteExpirationTimeConverter
java.lang.Object
de.hybris.platform.travelacceleratorstorefront.controllers.imported.QuoteExpirationTimeConverter
Utility class for converting quote expiration time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertDateToString(Date date, String pattern, Locale locale) static DateconvertStringToDate(String date, String pattern, Locale locale)
-
Method Details
-
convertDateToString
- Parameters:
date- the date to be convertedpattern- the date pattern to be used for conversionlocale- the locale to be used for conversion- Returns:
- null or the string representation of the date as per provided date pattern
-
convertStringToDate
Converts quote expiration time fromStringtoDateby adjusting the time part to end of day (23:59:59).- Parameters:
date- the string representation of quote expiration timepattern- the date pattern to be used for conversionlocale- the locale to be used for conversion- Returns:
- null if the string representation of expiration time is null or empty, otherwise the
Dateobject
-