pdfGetInfoDate
Parse a document info field as a date.
int pdfGetInfoDate(PDFHandle pdf, char *field,
int *year, int *month, int *day,
int *hour, int *minute, int *second)
This function retrieves the value of an info field, parsed as a date
(in the encoding format defined by the PDF specification).
Returns 1 on success, or 0 if the specified field doesn't exist or couldn't be parsed as a date.
C:
int year, month, day, hour, minute, second;
if (pdfGetInfoDate(pdf, "CreationDate", &year, &month, &day, &hour, &minute, &second)) {
printf("creation date = %04d-%02d-%02d %02d:%02d:%02d\n",
year, month, day, hour, minute, second);
} else {
printf("no creation date\n");
}