function normalizeDatetime
normalizeDatetime(
value: string,
label: string,
): string

Normalize datetime-local "YYYY-MM-DDTHH:MM" to full UTC ISO string. The input is interpreted as local time in the given timezone and converted to UTC.

Parameters

value: string
label: string

Return Type

string

Usage

import { normalizeDatetime } from "docs/events.ts";