function formatDatetimeShortInTz
formatDatetimeShortInTz(
utcIso: string,
tz: string
): string

Compact format for table cells: "yyyy-MM-dd HH:mm" in the given timezone. Delegates to the browser-compatible formatIsoForPreview helper so the same formatting runs on the server and in the admin JS bundle.

Parameters

utcIso: string
tz: string

Return Type

string

Usage

import { formatDatetimeShortInTz } from "docs/utilities.ts";