Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.AcroForms Namespace / TextField Class / SetDateFormat Method
The format string. Cannot be a null reference (Nothing in Visual Basic) or empty.

In This Topic
    SetDateFormat Method (TextField)
    In This Topic
    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.

    Syntax
    'Declaration
     
    Public Sub SetDateFormat( _
       ByVal format As System.String _
    ) 
    public void SetDateFormat( 
       System.string format
    )

    Parameters

    format
    The format string. Cannot be a null reference (Nothing in Visual Basic) or empty.
    See Also