intl-sup
    Preparing search index...

    Function formatDate

    • Format date & time based on current user locale.

      Parameters

      • date: Date

        The date and time to format.

      • format: DateTimeFormatOptions

        Format options.

      Returns string

      The formatted date and time string.

      1.0.0

      Browser support: Chrome 74, Edge 79, Firefox 75, Opera 62, Safari 14, Node 12, Bun 1, Deno 1.8