You can use the executeScript component to set the timestamp in the form or varible. Mention below is an example to get the timestamp in dd/MM/yyyy format.
java.text.DateFormat dateFormat = new java.text.SimpleDateFormat(
java.util.Date date = new java.util.Date();
String datetime = dateFormat.format(date);
System.out.println("Current Date Time : " + datetime);
patExecContext.setProcessDataStringValue("xpath of the form field or variable", datetime);
Thanks for the reply. I did a little research on the ExecuteScript in the help files and it mentioned that I could also use the set value. I tried using the set value to grab the user's name and entered that into the field. It worked. I had thought previously that it would not work for some reason. But it works now! I will now take a look at your sample script to grab the timestamp, concat that with the user name and enter into the field. THANKS!!
Hi LiveCycle BPM Developer,
I am working on the form that requires a task that is similar to your form which catch the username and timestamp and need help on this too. Have you got all work as you expected? If so, would you please post the sample form to share as well. Thanks much in advance.