Search Results for

    Show / Hide Table of Contents

    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)
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.