cDate("mmm dd, yyyy",new Date());
Looks like a function call for the function "cDate".
If you are using user date input you might want to consider some validation of the imputed value for being a valid date. Once a stamp is placed you will not be able to edit it.
Have you looked at other dynamic stamps to see how the dates get formatted?
Yes, I have looked at other dynamics stamps that use a date, i have seen the util.printd method and I currently use that. But I need the ability to back date if necessary. All of the stamps and examples of dates I've seen are for current system dates, not user input dates. I'm looking to see if there is code that will format a value held in a variable that is inputted by a user.
I can simply use event.date = cDate, which will return any value that a user inputs, regardless if it's even a date. I would like to fool proof the input field to only return a date. That's also where my interest in a date picker comes from.
Have you looked at how to reformat date strings?
You should study the scripts and think long about how and why it works. Unless one knows the order of the parts of at date one cannot process the string.
if one has a date string of 011015 what is the date?
January 10, 2015?
October 1, 2015?
October 15, 2001?