Skip to content
Sheetwrite

Sheetwrite / Documentation

serialToDate@sheetwrite/core

Convert a date serial back to a Date.

Convert a date serial back to a Date. Read the result with the UTC accessors (getUTCFullYear, getUTCMonth, …) — which is what the renderer does — so the calendar fields are stable regardless of the host time zone.

Declaration

function serialToDate(serial: number): Date