@corefunc/corefunc
    Preparing search index...

    Function dateFormat

    • Parameters

      • Optionalformat: string = "{YYYY}-{MM}-{DD}T{HH}:{mm}:{ss}"

        Template string.

      • Optionaldate: Date = ...

        Date to format.

      • OptionaluseLocalTime: boolean = true

        Use timezone offset or UTC time.

      Returns string

      Formatted date.

      dateFormat

      Format date with simple template string.

      0.3.23

      dateFormat("{YYYY}-{MM}-{DD}T{HH}:{mm}:{ss}", new Date(), true) // ➜ "2020-06-15T12:30:30"