Function formatDateTime

Formats a date-time according to the current language and context.

  • Parameters

    • Optionalcontext: string

      The context of the date-time.

    Returns string

    The formatted date-time.