Package de.brifle.sdk.helper
Class IsoDateConverter
java.lang.Object
de.brifle.sdk.helper.IsoDateConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DatefromIsoString(String date) Converts a string in the format yyyy-MM-dd'T'HH:mm'Z' to a datestatic DatefromIsoStringShort(String date) Converts a string in the format yyyy-MM-dd to a datestatic StringtoIsoString(Date date) Converts a date to a string in the format yyyy-MM-dd'T'HH:mm'Z'static StringtoIsoStringShort(Date date) Converts a date to a string in the format yyyy-MM-dd
-
Constructor Details
-
IsoDateConverter
public IsoDateConverter()
-
-
Method Details
-
toIsoString
Converts a date to a string in the format yyyy-MM-dd'T'HH:mm'Z'- Parameters:
date-- Returns:
-
toIsoStringShort
Converts a date to a string in the format yyyy-MM-dd- Parameters:
date-- Returns:
-
fromIsoString
Converts a string in the format yyyy-MM-dd'T'HH:mm'Z' to a date- Parameters:
date-- Returns:
- Throws:
Exception
-
fromIsoStringShort
Converts a string in the format yyyy-MM-dd to a date- Parameters:
date-- Returns:
- Throws:
Exception
-