@alextheman/utility - v4.3.5
    Preparing search index...

    Function formatDateAndTime

    • Creates a human-readable string with information about the input date.

      Parameters

      • inputDate: Date

        The date to base the string on.

      Returns string

      A new string with information about the given date.

      • If the date given is today, the output will be something like Today at HH:MM
      • If the date given happened yesterday, the output will be something like Yesterday at HH:MM
      • For any other date, the output will be something like DD/MM/YYYY, HH:MM