Function formatDateTime

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

formatDateTime();
  • Parameters

    • Optionalcontext: string

      The context of the date-time.

    Returns string

    The formatted date-time.