Answered
In my form. I break the date field into 3 textboxes. Text_day, Text_Month, and Text_Year.
After user enters all the 3 parts of a date into these 3 boxes, I need to combine them together and determined the combined string is a valid date or not. Is there any function like IsDate(variable) in Acrobat? If not, how can I do it?
Thanks!
And the results are:
new Date(sYear, (sMonth - 1), sDate): Tue Jan 12 2010 00:00:00 GMT-0600 (Central Standard Time)
util.scand("yyyy/mm/dd", sYear + "/" + sMonth + "/" + sDate): null
(util.scand("yyyy/mm/dd", sYear + "/" + sMonth + "/" + sDate) == null): true
2009 12 13
new Date(sYear, (sMonth - 1), sDate): Sun Dec 13 2009 00:00:00 GMT-0600 (Central Standard Time)
util.scand("yyyy/mm/dd", sYear + "/" + sMonth + "/" + sDate): Sun Dec 13 2009 15:44:34 GMT-0600 (Central Standard Time)
(util.scand("yyyy/mm/dd", sYear + "/" + sMonth + "/" + sDate) == null): false
undefined
George Kaiser