Example - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

OCR for AnyDoc
Foundation 23.1

This.ApplyDateExtraction "MY","MN Y4",1970,2069

  1. Create one text zone around the month and year and apply parameters as needed.
  2. Select Parameters Toolbox button | Rules Parameters, then click the zone to access the zone level Rules Parameters.
  3. Click the VBScript tab | Post Extraction button to access the VBScript window.
  4. Enter the following code in the main VBscript window:

    This.ApplyDateExtraction “MY”,”MN Y4”,1970,2069

    "MY" is the input format

    "MN Y4" is the output format and 1970,2069 is the date range.

  5. Click the Syntax Check button to identify any syntax errors in the script. "Successfully Compiled!” appears at the bottom of the window.
  6. Click OK in both the VBScript Editor and Rules Parameters window.
  7. Click in the month and year zone to see the results of the script.

You now have changed an abbreviated date and year format to the full name of the month with millennium and century information.


If a date field spans ninety-nine years or less, use a windowing strategy with the optional intMinYear, intMaxYear parameters when using Date Extraction with VBScript (as shown in this section). If you do not indicate a range of years, the default is the same as in the Date Extraction parameters, 1930 to 2029.


For example, an input date of OCT 98 would be output as OCT 1998, while the input date of OCT 01 would be output as OCT 2001.