A way to make "Prepare Form" understand a Date field?
Hello all.
I've a situation where I've been asked to add form fields to PDFs that are being made out of a custom MIS. The author of the forms is following the best practices, so most fields are taken care of (https://acrobatusers.com/assets/collections/tutorials/legacy/id_2263/acro9_designforms.pdf )
There is an issue with the date portion of the form. For example:

If the above is run through the Prepare Form feature of Adobe Acrobat DC Professional:

The signature is picked up OK, but the date field is just a text field:

I understand that I can change the name of the Date field to something like Date_af_date and this will change it to a date field;

But it doesn't truly act like a date field. If I close out of preview mode and tab to the text field, it behaves like a regular text field.

It isn't until the format category is changed to date that the field behaves like a date field with a date picker.

Is there a javascript I can run within an Acrobat action (first part of the action would be prepare form, second part of the action would be to run the javascript) that can convert a specifically named text field into a date field with not only the date picker functionality, but also have the date formatted to d mmmm yyyy?
I've come across lots of information that says uses util.printd or util.scand to apply a date format appearance to text already within a date field, but virtually no information about converting the format category of the text field to a date.

