These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Date Fields

Adriana
Registered: Mar 9 2009
Posts: 5

Hi,

I have set a few date fields in my form, with the mm/dd/yyyy format. The validation works most of the time. However, if I type "12/12/199T" in one of these, the validation does not work and on blur the field's value becomes "12/12/0199". Is this a bug?

Thanks.

My Product Information:
Acrobat Pro 9.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
What date is "12/12/199T"?

Date strings are not number they are character strings of number characters. The bug is that the 'T' is dropped and the year is assumed to be '0199'. Without seeing the underlying code it is hard tell what is happening. I do know that date fields accept a date formatted in the UTC format that does not have an exact date, so one can enter only the year or year and month.

George Kaiser

Adriana
Registered: Mar 9 2009
Posts: 5
There is no underlying code. This is a simple text field with the format of "Date" and "mm/dd/yyyy" (set within the Properties of the field).

The example I gave was that I typed a non-numeric character as the last character of the field.
Typing "12/12/199s" or "12/12/199a", etc, will give the same (incorrect) result...

I was instead expecting a validation message - just like the one I am getting if I type "12/12/19a9" for example...

Thanks.