/  Home  PDF-Tools  Document  Support

PDF Date Format


PDF defines a standard date format, which closely follows that of the international standard ASN.1 (Abstract Syntax Notation One), defined in ISO/IEC 8824 (see the Bibliography). A date is a string of the form

(D:YYYYMMDDHHmmSSOHH'mm')

where

YYYY is the year
MM is the month
DD is the day (01-31)
HH is the hour (00-23)
mm is the minute (00-59)
SS is the second (00-59)
O is the relationship of local time to Universal Time (UT), denoted by one of the characters +, -, or Z (see below)
HH followed by ' is the absolute value of the offset from UT in hours (00-23)
mm followed by ' is the absolute value of the offset from UT in minutes (00-59)

The quotation mark character (') after HH and mm is part of the syntax. All fields after the year are optional. (The prefix D:, although also optional, is strongly recommended.) The default values for MM and DD are both 01; all other numerical fields default to zero values. A plus sign (+) as the value of the O field signifies that local time is later than UT, a minus sign (-) that local time is earlier than UT, and the letter Z that local time is equal to UT. If no UT information is specified, the relationship of the specified time to UT is considered to be unknown. Whether or not the time zone is known, the rest of the date should be specified in local time.

For example, December 23, 1998, at 7:52 PM, U.S. Pacific Standard Time, is represented by the string,

D:19981223195200-08'00'

OR

D:20140327195230+05'00'

For example, you can set following date options in Advanced PDF Tools GUI version,

If your PDF file is contain metadata, you need choose "Remove metadata" option under "Optimize" tab too,

Click "Change" button to modify Dates in PDF file.

Open the modified PDF file in Adobe Acrobat, you will see the "Created Date" and "Modified Date" have been changed,

If you are using Advanced PDF Tools Command Line software, you can use "-m" and "-d" options to set CreateDate and ModifyDate values to PDF file,

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -m "D:YYYYMMDDHHmmSSOHH'mm'"
pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -d "D:YYYYMMDDHHmmSSOHH'mm'"

e.g.,

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -d "D:20040930122809-07'00'" -m "D:20040930122809-07'00'"

Advanced PDF Tools Command Line User Manual

/pdfinfoeditor/pdf-tools-command-line.htm
/app/advanced-pdf-tools/advanced-pdf-tools-command-line-guide.html

See also:

How to Optimize PDF Files for Web Sites?
How to Compress your PDF files?
PDF Tools Command Line options
PDF Compression Command Line options
JPEG2000 compression in Advanced PDF Tools
Modify Custom Properties in Advanced PDF Tools
Scale your PDF pages with PDF Tools and docPrint
VeryPDF JBIG2 Compression Engine
Understanding "Flavors" of PDF
What is PDF/A? What is PDF/X?
Comparison between JPEG and JPEG 2000
How to edit create date using Advanced PDF Tools Command Line?

Advanced PDF Tools Command Line Home page.


PDF DOCUMENT SUMMARY :: PDF SUMMARY MAKER :: PDF PAGE NUMBERER :: PDF INFO CHANGER :: PDF SHRINK :: PDF INFORMATION MANAGER  :: PDF INFORMATION EDITOR :: JPEG2000 :: PDF COMPRESS :: PDF OPTIMIZER :: PDF REDUCER :: PDF LINEARIZATION :: PDF METADATA :: PDF COMPRESSOR :: PDF PAGE COUNTER

VeryPDF.com | VeryDOC.com | VeryPCL.com | Links | Contact

Copyright © 2000-2015 by VeryPDF.com, Inc.
Send comments about this site to the webmaster.