The timestamp to format.
The type of formatting to use. Can be 'date', 'time', or 'datetime'.
The date formatting style to use. Defaults to 'medium'.
The time formatting style to use. Defaults to 'short'.
The locale to use for formatting. Defaults to 'en'.
The formatted date or time string.
Formats a date or time according to the specified options.