View on GitHub

js-ts-monorepos

Home > @shlack/utils > formatTimestamp

formatTimestamp() function

Format a timestamp as a string

Signature:

export declare function formatTimestamp(date: Date): string;

Parameters

Parameter Type Description
date Date the date value to format

Returns:

string