• Convert a timestring to a human readable string (e.g. 'two minutes ago').

    Parameters

    • value: string | Date

      The date timestring or date object.

    • format: RelativeTimeFormatStyle = 'long'

    Returns string

    A formatted date.