I have a "Revision Date" field in a footer but it displays the current date. I would like to display the date the file was last modified. This script in the layout:ready event is:
this.rawValue = util.printd("yyyy/mm/dd", new Date());
Any help is appreciated, thanks!
If you are meaning then the form template (as opposed to a user saving an instance of the form) was saved/modified you can try,
this.rawValue = util.printd("yyyy/mm/dd", util.scand("yyyy-mm-dd", xfa.timeStamp));
The util.scand format specifies the input format, so your change makes sense.
The documentation can be found here http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?h...
and there's some other samples here http://adobelivecycledesignercookbookbybr001.blogspot.com.au/2014/03/using-utilprint-methods.html
That works perfectly, thanks!
I decided I needed the date in mm/dd/yyyy format, but when I changed both masks to that format, it didn't work. I had to change only the util.printd mask to mm/dd/yyyy.
Where can learn a little more about using the "util" method?