Class PdfDateFormatter
A Utility class for formatting date in PDF
Inheritance
System.Object
PdfDateFormatter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: IronPdf.MetaData
Assembly: IronPdf.dll
Syntax
public class PdfDateFormatter
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()
Get time zone offset
Declaration
public virtual TimeSpan GetTimeZoneOffset()
Returns
Type | Description |
---|---|
System.TimeSpan | TimeSpan |
Inherited members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)