Expand my Community achievements bar.

Set Timestamp in a textfield

Avatar

Former Community Member
Hello

I have a PDF form in which I would like to capture the time user has started on an application. I would like to capture the date and time stamp when the user starts entering in a field. I would like to capture the date and time on the 'Change' event of a field and populate in another text field. This is a stand alone PDF. Appreciate if you could tell me of a date function that could solve this.



Thanks!!
2 Replies

Avatar

Former Community Member
The easiest way is to use a FormCalc function:



$=Num2Time(Time())

Avatar

Former Community Member
I am using JavaScript on the same field for some other calculations.

With javascript I am using $=Date() functionality but I am not getting the correct date format. Can we force MM/DD/YYYY HH:MM Z format on the Date() function.



the Date() function returns the format 'Day DD MMM YYYYY HH:MM:SS GMT'