Interface Formats


  • public interface Formats
    • Method Detail

      • 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()
      • formatDateOrDateTime

        default String formatDateOrDateTime​(Date date)