A date object (eg {year:2021, month: 4, day: 12, hour: 0, minute: 0, seconds: 0}
) with the parameters set to the date and time that should be formatted.
Important: The month and day are index based so January would be 0 and the first day of the month will also be 0.
Optional format string to return custom formats for the passed in date and time.
Optional parameter to specify the ID of the calendar to use when converting a date to a formatted string. If not provided the current active calendar will be used.
Converts the passed in date/time into formatted date and time strings that match the configured date and time formats or the passed in format string.
Returns
If no format string is provided an object with the date and time formatted strings, as set in the configuration, will be returned. If a format is provided then a formatted string will be returned.
Examples