Class DateFormatHelper
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
stringThe pdf formated date string, e.g. D:199812231952-08'00.
offset
DateTimeOffsetThe parsed date.
Returns
- bool
True if parsed.