Class PdfDate
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
PdfDate is the PDF date object. PDF defines a standard date format. The PDF date format closely follows the format defined by the international standard ASN.1 (Abstract Syntax Notation One, defined in CCITT X.208 or ISO/IEC 8824). A date is a PdfString of the form: (D:YYYYMMDDHHmmSSOHH'mm') This object is described in the 'Portable Document Format Reference Manual version 1.3' section 7.2 (page 183-184) @see PdfString @see java.util.GregorianCalendar
public class PdfDate : PdfString
- Inheritance
-
PdfDate
- Inherited Members
Constructors
PdfDate()
Constructs a PdfDate -object, representing the current day and time.
public PdfDate()
PdfDate(DateTime)
constructors
public PdfDate(DateTime d)
Parameters
d
DateTimethe date that has to be turned into a PdfDate -object
Methods
Decode(string)
Adds a number of leading zeros to a given string in order to get a string of a certain length.
public static DateTime Decode(string date)
Parameters
date
string
Returns
- DateTime
the resulting string
GetW3CDate()
Gives the W3C format of the PdfDate.
public string GetW3CDate()
Returns
- string
a formatted date
GetW3CDate(string)
Gives the W3C format of the PdfDate.
public static string GetW3CDate(string d)
Parameters
d
stringthe date in the format D:YYYYMMDDHHmmSSOHH'mm'
Returns
- string
a formatted date