Table of Contents

Class DateFormatHelper

Namespace
UglyToad.PdfPig.Util
Assembly
UglyToad.PdfPig.dll

Helper class for dates.

public static class DateFormatHelper
Inheritance
DateFormatHelper
Inherited Members

Methods

TryParseDateTimeOffset(string, out DateTimeOffset)

Try parsing a pdf formatted date string into a DateTimeOffset.

Date values used in a PDF shall conform to a standard date format, which closely follows that of the international standard ASN.1, defined in ISO/IEC 8824. A date shall be a text string of the form (D:YYYYMMDDHHmmSSOHH'mm).

public static bool TryParseDateTimeOffset(string s, out DateTimeOffset offset)

Parameters

s string

The pdf formated date string, e.g. D:199812231952-08'00.

offset DateTimeOffset

The parsed date.

Returns

bool

True if parsed.