Class DateTimeFormatter
- java.lang.Object
-
- coop.intergal.ui.utils.converters.DateTimeFormatter
-
- All Implemented Interfaces:
Serializable
public class DateTimeFormatter extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DateTimeFormatter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringformat(String dateString, Locale locale)static Stringformat(LocalDateTime dateTime, Locale locale)Format the given local time using the given locale.
-
-
-
Method Detail
-
format
public static String format(LocalDateTime dateTime, Locale locale)
Format the given local time using the given locale.- Parameters:
dateTime- the date and time to formatlocale- the locale to use to determine the format- Returns:
- a formatted string
-
-