I need to display the current date and time in a textfield that is dynamicaly created. I do not want that time or date to change (remains the same as long as that field stays displayed and the form is saved.) I need it in the following format: Monday, 4/02/2012, 3:03 PM
this.rawValue = util.printd("mm/dd/yy - h:MM ", new Date() );
I was not able to reply yesterday - that option was not displayed.
Unfortunitly, EEEE, MM/DD/YYYY, h:MM A does not work in the textfield, and I need to have it in a textfield.
Thanks for your reply.
Though I was just playing around with it and it looks like time and date are separate in FormCalc - unless someone knows different?
I tried the following and it worked:
$ = Concat(num2date(date(), "EEEE, MM/DD/YYYY"), Space(1), num2time(time(), "h:MM A"))
Message was edited: Removed some extra brackets that weren't needed in the script.
I don't use FormCalc a lot but it's really good for dates and calculating using repeating objects.
Picture Clause reference:
Europe, Middle East and Africa