@threadplane/chatFunctionv0.3.4

formatPublished

Short freshness label (e.g. "Apr 2024"); null when absent or unparseable.

import { formatPublished } from '@threadplane/chat';

Declaration · overload 1

export declare function formatPublished(value?: string | number | Date): string | null;

Parameters

value · optional
string | number | Date

Returns

string | null