Table of Contents

Class PdfDate

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

Represents a direct date value.

public sealed class PdfDate : PdfPrimitive
Inheritance
object
PdfDate
Inherited Members
Extension Methods

Constructors

PdfDate()

Initializes a new instance of the PdfDate class. The Value property becomes null.

PdfDate(DateTime)

Initializes a new instance of the PdfDate class.

PdfDate(DateTimeOffset)

Initializes a new instance of the PdfDate class.

PdfDate(string)

Initializes a new instance of the PdfDate class. If the string is not a valid PDF date the Value property becomes null.

Properties

Value

Gets the value as DateTimeOffset. Use ToString to get the PDF date string. The value is null if the class was not initialized with a valid PDF date.

Methods

ToString()

Returns the value as a PDF date formatted string, or the empty string if no value was set. The string looks like (D:YYYYMMDDHHmmSSOHH'mm').