SetFormFieldDateFormat
Form fields
Description
This page describes SetFormFieldDateFormat in PDFlibPas under the "Form fields" topic. API names, parameters, class names, filenames, and literals are kept exactly as they appear in the Delphi library and DLL entry points.
Review the syntax, parameters, and return values before calling the function.
Syntax
Delphi
Function TPDFlib.SetFormFieldDateFormat(Index: Integer; Const DateFormat: WideString): Integer;
Parameters
Index is the 1-based field index. DateFormat is an Acrobat date picture string such as mm/dd/yyyy, dd.mm.yyyy or yyyy-mm-dd.
Return Values
Returns 1 on success, or 0 when the field does not exist or a selector is out of range.
Remarks
Writes the AFDate_KeystrokeEx/AFDate_FormatEx action pair so viewers validate and normalise typed dates against the picture string.