Function formatDateTime

  • Returns the formatted string that represent the given date

    Parameters

    • Optionaldate: Date

      the date to inspect

    • Optionalformat: string

      the date/time format string

    Returns string | undefined

    the formatted string that represent the given date