getCallLogDate static method

String getCallLogDate({
  1. required int microSeconds,
  2. String format = "dd-MMM",
})

Generates a Date String indicating the date of a call based on its call log time.

@param microSeconds The timestamp of the call log time. @return A string representing the date of the call, or a translated string indicating 'Today', 'Yesterday', or an DateString(dd-MMM) string if the call log date is not relevant.

Implementation

static String getCallLogDate(
    {required int microSeconds, String format = "dd-MMM"}) {
  return getDateString(microSeconds, format);
}