SetDateFormat
Sets the date format for date fields.
Member of namespace
HandwritingRecognitionSyntax
bool SetDateFormat (string param)
Parameters
param: The integer value representing the date format. The following values are supported:
- 0 - MMDDYYYY. The numeric month/day/year format. For example, 12/31/2010 or 12/31/10.
- 1 - MMMMDDYYYY. The mixed alpha-numeric month/day/year format. For example, 12/31/2010, 12/31/10 or December 31, 2010.
- 2 - DDMMYYYY. The European day/month/year format. For example, 31/12/2010 or 31/12/10.
- 3 - DDMMMMYYYY. The European mixed alpha-numeric day/month/year format. For example, 31/12/2010, 31/12/10, or 31 December 2010.
- 4 - YYYY. The numeric year format. For example, 2010 or 10.
- 5 - MM. The numeric month format. For example, 12.
- 6 - DD. The numeric day format. For example, 31.
- 7 - MMYYYY. The numeric month/year format. For example, 12/2010 or 12/10.
- 8 - MMDD. The numeric month/day format. For example, 12/31.
- 9 - YYYYMMDD. The numeric year/mm/day format. For example, 2010/12/31 or 10/12/31.
- 10 - GenericUS. The combination of date formats generally used in the United States. This is a combination of date formats MMDDYYYY, YYYYMMDD, and MMMMDDYYYY.
Smart parameters are supported.
Returns
True always.Level
Field.Details
Sets the date format for date fields. The date type supports the following languages: English, German, Portuguese (Brazil), or Spanish (Latin America). The date formats DD MMMM YYYY and MMMM DD, YY are not supported for German language.
- Example:
Field level ruleset (can be run either when entering a field, Open node, or leaving a field, Close node):
SetFieldTtype(512) SetDateFormat(1)The example above sets the field type to Date, and sets the expected date format.
Page level ruleset (must be run after ALL fields to be recognized have been configured, either at the Close of the page, or in a separate subsequent ruleset).
Recognize()This ruleset performs recognition of the configured fields.