I am new to this and am looking for some help with the syntax for a custom validation script. I have a field for users to input, but I need it in this format, ##/##/##. I tried to find some examples online, but they're all text examples so using "##/##/##" as the criteria always looks for that, so no luck there.
Essentially I need the script to recognize that if they enter 010116 it will tell them it should be 01/01/16. I know that formatting the field as a date will do this, but sometimes (rarely) the user can use 99/99/99 and Adobe does not recognize this as a valid date.
Any help would be greatly appreciated!
You don't need a script. In the Properties window, under Format, select Special, Arbitrary Mask and then enter this mask: 99/99/99
Once again, thank you, thank you, thank you!!
Many of those scripts are for validating date in the format of mm/dd/yy or dd/mm/yy which are very different strings.
The "mm/dd/yy" string will have the "mm" values form 01 to 12, the "dd" will have the values 01-31 but some could be limited to the number of days in a specific month and year.
The "dd/mm/yy" has he same restrictions for the "dd" value except it is now the middle group.
But is is possible to modify the scripts found to allow 0-9 for al the positions.