LogoRobo.js
Framework

formatTimestamp()

Function: formatTimestamp()

function formatTimestamp(date, format): string | null

Formats a timestamp according to the specified format.

Parameters

ParameterTypeDescription
dateDateThe date to format
formatTimestampFormatThe timestamp format to use

Returns

string | null

Formatted timestamp string, or null if format is false

On this page