Class PdfDateFormatter
Inheritance
System.Object
PdfDateFormatter
Namespace: IronPdf.MetaData
Assembly: IronPdf.dll
Syntax
public class PdfDateFormatter : Object
Constructors
PdfDateFormatter()
Declaration
public PdfDateFormatter()
Methods
Convert(DateTime)
Convert the specified date into a PDF-compatible local date string with UTC offset information
Declaration
public string Convert(DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | date | Date to convert |
Returns
Type | Description |
---|---|
System.String | PDF-compatible local date string |
Convert(String)
Convert the specified PDF-compatible local date string with UTC offset information into a universal DateTime object
Declaration
public DateTime Convert(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to convert |
Returns
Type | Description |
---|---|
System.DateTime | Universal DateTime object |
GetTimeZoneOffset()
Declaration
public virtual TimeSpan GetTimeZoneOffset()
Returns
Type | Description |
---|---|
System.TimeSpan |