Function formatDate

Formats a date according to the current language and context.

  • Parameters

    • Optionalcontext: string

      The context of the date.

    Returns string

    The formatted date.