tag:blogger.com,1999:blog-7970679050025899967.post5289519510794429530..comments2023-11-24T03:56:57.923-08:00Comments on Adobe LiveCycle Designer Cookbooks by BR001: Date handling in Livecycle Designer ES formsBR001http://www.blogger.com/profile/02005650446661555680noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-7970679050025899967.post-24074043895383448232014-12-09T13:04:03.606-08:002014-12-09T13:04:03.606-08:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/15165142502678537478noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-52735950500150257362014-11-15T20:42:00.662-08:002014-11-15T20:42:00.662-08:00Hi Robert
I haven't had the need to use dates...Hi Robert<br /><br />I haven't had the need to use dates prior to 1900 so hadn't come across this problem.<br /><br />It seems to be a problem using util.printd() and using the XFA picture clauses, that is when the third parameter is true.<br /><br />You could try changing the line;<br /><br />return isNaN(this) ? "Invalid Date" : util.printd("YYYY-MM-DD", this, true)<br /><br />to <br /><br />return isNaN(this) ? "Invalid Date" : util.printd('yyyy-mm-dd', this)<br /><br />This is using the Acrobat JavaScript date picture format, which I had wanted to avoid as it's just another thing to learn.<br /><br />There are other places in my code that will probably cause the same exception, but the XFA picture formats are also more functional, so the fixes might not be so simple. Hopefully you wont need those functions.<br /><br />Regards<br /><br />Bruce<br />BR001https://www.blogger.com/profile/02005650446661555680noreply@blogger.comtag:blogger.com,1999:blog-7970679050025899967.post-35182530880871060942014-11-06T08:43:27.473-08:002014-11-06T08:43:27.473-08:00Hi Bruce,
I am using your xfa date object to be ab...Hi Bruce,<br />I am using your xfa date object to be able to return the easter sunday date of a random year and I've found out that if we enter a date before the year 1900 it will say that the date is an invalid date... I am looking at your code and the problem seems to be in the function toXFADate();<br />The error occurs on the util.printd() function... <br />Are you aware of this issue? is it possible to have it fix?!?Anonymoushttps://www.blogger.com/profile/15165142502678537478noreply@blogger.com