Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

new Date() --> getYear() & getMonth() return strange/wrong values

$
0
0

Hi,

I am writing this Javascript under a text field initialize event of Livecycle:

var date = new Date();

xfa.host.messageBox("year "+date.getYear(),"Message",3);

xfa.host.messageBox("month "+date.getMonth(),"Message",3);

 

I get "113" for the first messageBox and "5" for the second.

Shouldn't they be 13 (or 2013) and 6 as we are in June 2013 now??

Thanks


Viewing all articles
Browse latest Browse all 1160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>