modern-pdf-lib / formatPdfDate
Function: formatPdfDate()
formatPdfDate(
date):string
Defined in: src/core/pdfCatalog.ts:36
Format a Date as a PDF date string.
PDF dates follow the form: D:YYYYMMDDHHmmSSOHH'mm
Ois the relationship to UT:+,-, orZ.- The trailing
HH'mmis the UT offset.
Parameters
date
Date
A JavaScript Date object.
Returns
string
A PDF date string wrapped in parentheses.