formatPublished

Unpublished development API. This package is under development and is not available as a published release.

Format a publication month/year in the host locale and timezone; null when missing or invalid.

import { formatPublished } from '@threadplane/content/messages';

Declaration · overload 1

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

Parameters

value · optional
string | number | Date

Returns

string | null