Optionalformat: string
Optional. The format to use for the date output. Can be a DateTimeFormat object or a string pattern.
OptionaltimezoneOffset: number
Optional. The timezone offset in minutes to apply to the current date.
The formatted current date as a string.
Formats the current date and time according to the specified format and timezone offset.