Package org.openl.rules.table.formatters
Interface Formats
-
public interface Formats
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Stringdate()StringdateTime()default StringformatDate(Date date)Format date object to have date info (without time).default StringformatDateOrDateTime(Date date)default StringformatDateTime(Date date)Format date object to have date and time info.
-
-
-
Method Detail
-
date
String date()
-
dateTime
String dateTime()
-
formatDate
default String formatDate(Date date)
Format date object to have date info (without time). Note: you should not use it in a loop because date format retrieving can be slow. Instead, you should retrieve format once and use preconfigured SimpleDateFormat in the loop.- See Also:
date()
-
formatDateTime
default String formatDateTime(Date date)
Format date object to have date and time info. Note: you should not use it in a loop because dateTime format retrieving can be slow. Instead, you should retrieve format once and use preconfigured SimpleDateFormat in the loop.- See Also:
dateTime()
-
-