[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.AcroForms.TextField.SetDateFormat

SetDateFormat Method

SetDateFormat(string)

Imposes the specified date format string on the current TextField.

The syntax of the format string is similar to .NET format strings. Some examples are "m/d/yyyy" or "d-mmm-yy".

Note that this method initializes the values of Field.Events.FormatValue and Field.Events.KeyPress only, it does not change the field's value or widget appearance streams.

Declaration
public void SetDateFormat(string format)
Public Sub SetDateFormat(format As String)
Parameters
Type Name Description
string format

The format string. Cannot be null or empty.