The Date object to format.
Optional
format: stringOptional. The format to use for the output string. Can be a DateTimeFormat
or a string.
Optional
timezoneOffset: numberOptional. 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.