Table of Contents

Class PdfDate

Namespace
iText.Kernel.Pdf
Assembly
itext.kernel.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')

See also ISO-320001 7.9.4, "Dates".
public class PdfDate : PdfObjectWrapper<PdfString>
Inheritance
PdfDate
Inherited Members

Constructors

PdfDate()

Constructs a PdfDate -object, representing the current day and time.

public PdfDate()
See Also

PdfDate(DateTime)

Constructs a PdfDate -object.

public PdfDate(DateTime d)

Parameters

d DateTime

the date that has to be turned into a PdfDate

-object

See Also

Methods

Decode(string)

Converts a PDF string representing a date into a DateTime .

public static DateTime Decode(string s)

Parameters

s string

the PDF string representing a date

Returns

DateTime

a DateTime representing the date

See Also

GetW3CDate()

Gives the W3C format of the PdfDate.

public virtual string GetW3CDate()

Returns

string

a formatted date

See Also

GetW3CDate(string)

Gives the W3C format of the PdfDate .

public static string GetW3CDate(string d)

Parameters

d string

the date in the format D:YYYYMMDDHHmmSSOHH'mm'

Returns

string

a formatted date

See Also

IsWrappedObjectMustBeIndirect()

protected override bool IsWrappedObjectMustBeIndirect()

Returns

bool
See Also

See Also