PdfJsDateString.toDateObject method
PdfJsDateString › toDateObject
Unofficial
Converts a PDF date string to a date.Signature:
toDateObject(input: string | null | undefined): Date | nullParameters:
| Parameter | Type | Description |
|---|---|---|
| input | string | null | undefined | The PDF date string, e.g. D:20240102030405Z. |
Returns: Date | null — The date, or null when the string cannot be parsed.