Class PdfDate
Represents a direct date value.
public sealed class PdfDate : PdfPrimitive
- Inheritance
-
objectPdfDate
- Inherited Members
- Extension Methods
Constructors
- 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').