Class PdfXfaDatePattern
Specifies the date pattern.
Inheritance
System.Object
PdfXfaDatePattern
Namespace: Syncfusion.Pdf.Xfa
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class PdfXfaDatePattern : Enum
Examples
//Create a new XFA document
PdfXfaDocument document = new PdfXfaDocument();
//Create a new XFA form
PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595);
//Create a new XFA Field
PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(200, 30));
//Set the format of the date time field.
field.Format = PdfXfaDateTimeFormat.Date;
//Set date pattern.
field.DatePattern = PdfXfaDatePattern.Full;
//Set the default value
field.Value = DateTime.Now;
//Add the field to the form
form.Fields.Add(field);
document.XfaForm = form;
//Save the document
document.Save("output.pdf", PdfXfaType.Dynamic);
//Close the document
document.Close();
'Create a new XFA document
Dim document As New PdfXfaDocument()
'Create a new XFA form
Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595)
'Create a new XFA Field
Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(200, 30))
'Set the default value
field.Value = DateTime.Now
'Set the format of the date time field.
field.Format = PdfXfaDateTimeFormat.Date
'Set date pattern.
field.DatePattern = PdfXfaDatePattern.Full
'Add the field to the form
form.Fields.Add(field)
document.XfaForm = form
'Save the document
document.Save("output.pdf", PdfXfaType.Dynamic)
'Close the document
document.Close()
Fields
DDMMMMYYYY
13 November, 2015.
Declaration
public const PdfXfaDatePattern DDMMMMYYYY
Field Value
Type |
---|
PdfXfaDatePattern |
DDMMMYY
13-Nov-15.
Declaration
public const PdfXfaDatePattern DDMMMYY
Field Value
Type |
---|
PdfXfaDatePattern |
DDMMYYYY
30/10/2015
Declaration
public const PdfXfaDatePattern DDMMYYYY
Field Value
Type |
---|
PdfXfaDatePattern |
Default
Appears the Default value eg: Nov 13, 2015
Declaration
public const PdfXfaDatePattern Default
Field Value
Type |
---|
PdfXfaDatePattern |
EEEE_MMMMD_YYYY
Friday, November 13, 2015.
Declaration
public const PdfXfaDatePattern EEEE_MMMMD_YYYY
Field Value
Type |
---|
PdfXfaDatePattern |
EEEEDDMMMMYYYY
Friday, 13 November, 2015.
Declaration
public const PdfXfaDatePattern EEEEDDMMMMYYYY
Field Value
Type |
---|
PdfXfaDatePattern |
EEEEMMMMDDYYYY
Friday, November 13, 2015
Declaration
public const PdfXfaDatePattern EEEEMMMMDDYYYY
Field Value
Type |
---|
PdfXfaDatePattern |
Full
Thursday, November 12, 2015.
Declaration
public const PdfXfaDatePattern Full
Field Value
Type |
---|
PdfXfaDatePattern |
Long
November 13,2015.
Declaration
public const PdfXfaDatePattern Long
Field Value
Type |
---|
PdfXfaDatePattern |
MDYY
11/13/15.
Declaration
public const PdfXfaDatePattern MDYY
Field Value
Type |
---|
PdfXfaDatePattern |
MDYYYY
11/13/2015.
Declaration
public const PdfXfaDatePattern MDYYYY
Field Value
Type |
---|
PdfXfaDatePattern |
Medium
eg: Nov 13, 2015.
Declaration
public const PdfXfaDatePattern Medium
Field Value
Type |
---|
PdfXfaDatePattern |
MMDDYY
11/13/15.
Declaration
public const PdfXfaDatePattern MMDDYY
Field Value
Type |
---|
PdfXfaDatePattern |
MMDDYYYY
11/13/2015.
Declaration
public const PdfXfaDatePattern MMDDYYYY
Field Value
Type |
---|
PdfXfaDatePattern |
MMMD_YYYY
Nov 13,2015.
Declaration
public const PdfXfaDatePattern MMMD_YYYY
Field Value
Type |
---|
PdfXfaDatePattern |
MMMMD_YYYY
November 13,2015.
Declaration
public const PdfXfaDatePattern MMMMD_YYYY
Field Value
Type |
---|
PdfXfaDatePattern |
MMMMDDYYYY
November 13,15.
Declaration
public const PdfXfaDatePattern MMMMDDYYYY
Field Value
Type |
---|
PdfXfaDatePattern |
MMMMYYYY
November 2015.
Declaration
public const PdfXfaDatePattern MMMMYYYY
Field Value
Type |
---|
PdfXfaDatePattern |
Short
eg:11/13/2015.
Declaration
public const PdfXfaDatePattern Short
Field Value
Type |
---|
PdfXfaDatePattern |
YYMMDD
15/11/13.
Declaration
public const PdfXfaDatePattern YYMMDD
Field Value
Type |
---|
PdfXfaDatePattern |
YYYYMMDD
2015-11-13.
Declaration
public const PdfXfaDatePattern YYYYMMDD
Field Value
Type |
---|
PdfXfaDatePattern |