Skip to content

toExcelDate()

function toExcelDate(d): Date;

Excel stores dates without a time zone and exceljs converts JS Dates from UTC. Re-express the local wall-clock time as UTC so the cell shows the same date and time the report shows.

Parameter Type
d Date

Date