kaven-basic - v6.0.0
    Preparing search index...

    Function FormatDate

    • Formats a given Date object into a string based on the specified format and optional timezone offset.

      Parameters

      • date: Date

        The Date object to format.

      • Optionalformat: string

        Optional. The format to use for the output string. Can be a DateTimeFormat or a string.

      • OptionaltimezoneOffset: number

        Optional. The timezone offset (in minutes) to apply when formatting the date. If not provided, the date is formatted in the local timezone.

      Returns string

      The formatted date string.

      1.0.5

      2021-08-06