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.
The formatted date string.
Formats a given Date object into a string based on the specified format and optional timezone offset.