Framework
formatTimestamp()
Function: formatTimestamp()
function formatTimestamp(date, format): string | nullFormats a timestamp according to the specified format.
Parameters
| Parameter | Type | Description |
|---|---|---|
date | Date | The date to format |
format | TimestampFormat | The timestamp format to use |
Returns
string | null
Formatted timestamp string, or null if format is false
