I know how to add a date field, but I would also like to add a time field.
var f = this.getField("Today");
f.value = util.printd("mmm/d/yyyy HH:MM tt", new Date());
And I am able to get the date but the time field does not change from the time when the form was first created.
Any help ???
I created the form yesterday at 11.45 am. Everytime I open the form the date has changed to 15 May 2012, but the time remains at 11.45 am.
I tried closing and opening the form several times but the time does not change.
Thanks for your help my friend.
The creaeted date or time is very different than the date or time a page was opened or a PDF was opened.
You can us the docs info property to get the CreationDate or the ModDate