cancel
Showing results for 
Search instead for 
Did you mean: 

adobe date format

Former Member
0 Kudos

Hi

i have binded an atrribute of type date to date/time field (DD-MMM-YYYY).if user enters any other formats like 1234,or an invalid date,then he click on submit button, error msg is displaying saying that "Enter the value in the format 1987- 11-25." instead of 25-NOV-1987 .please can u send the date validation code .

Thanks

rahul

Edited by: rahul kumar on Dec 6, 2008 7:33 AM

Edited by: rahul kumar on Dec 6, 2008 7:33 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Try this. May be it would help.

You can write formcalc script on DATE field in 'preSubmit' event to validate the specified format and a message to pop up.

FormCalc script -

if (data.subform#.DATE.format != 'specified format')

then

xfa.host.messageBox("Please enter DATE in YYYY-MM-DD format only")

endif

As you have already specified the DATE format in paletts -> objects -> bindings, it will not accept any other format entered. The above script will let a message to pop up displaying the same message.

Former Member
0 Kudos

Hi Vishal

Thanks for u reply, my problem is when ever pop up opens saying that Please enter invalid date when user clicks on OK button of pop up window then that invalid value in date/time field should become Null,can u please tell me how to write code for it

Thanks

kishore

Former Member
0 Kudos

Hi -

Refer the thread [;

See, if this help you.