function dateToStartEnd
dateToStartEnd(date: string | null): { startAt: string | null; endAt: string | null; }

Convert nullable date to start_at/end_at (null-safe wrapper around dateToRange)

Parameters

date: string | null

Return Type

{ startAt: string | null; endAt: string | null; }

Usage

import { dateToStartEnd } from "doc.ts";