Package 

Object DateFormatter

    • Method Summary

      Modifier and Type Method Description
      final static String formatAsTimeOrDate(Date date) Formats the given date as 24h time if it's on the current day, and as a month/day format date otherwise.
      • Methods inherited from class com.getstream.sdk.chat.utils.DateFormatter

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • formatAsTimeOrDate

         final static String formatAsTimeOrDate(Date date)

        Formats the given date as 24h time if it's on the current day, and as a month/day format date otherwise.