The xfa.event.newText captures a Date field with slashes in YYYY/MM/DD format, but I don't want it to return the slashes. Is it possible just to grab the numeric part by getting the YYYY first, then the MM, then the DD?
Thanks for any help.
Are these answers useful? Help other community members by marking useful answers as accepted.
Great, that's exactly what I was looking for. But I don't know how to incorporate it into the script, which is in the "change" event. Do I need to assigned the "cleaned" date to a temporary variable and then apply the script?
I figure something like this:
var cleanDate = console.println(xfa.event.newText.replace(/\//g,""));