Skip to main content
Participant
February 12, 2020
Question

Fill in Date DDMMYYYY

  • February 12, 2020
  • 4 replies
  • 5877 views

Hey,

 

I would like to create a form where people can insert the date in a textfield or datefield as DDMMYYYY (without any dots or slashes). It should be printed as DD.MM.YYYY. I habe absolutely no idea how i could manage this. Thanks for your help!

 

Serion

4 replies

JR Boulay
Community Expert
Community Expert
April 2, 2025

😉

 

Acrobate du PDF, InDesigner et Photoshopographe
Participant
April 2, 2025

This is INSANE.  I have spent 1/2 hour trying to use Google, Adobe website, and Abobe AI in "Pro" to change Request e-signature date UK default from UK to USA.  HINT:  My setting are EST USA and inches so I want USA mm/dd/year NOT dd/mm/year.  I FINALLY figure it out on my own.  When you drag Date into document, right click within box, and Date Format is option.  Thanks for making me think I have to do advance scripting (below my input at this point)

ls_rbls
Community Expert
Community Expert
April 3, 2025

Hi @perfect_Glow1265 ,

 

For the clarity of other Adobe community members (or first time visitors) that may come accross this old discussion, I believe it  was originally answered based on how to customize a date format in Adobe Acrobat Pro DC full desktop version, without using e-Signatures or Acrobat Sign while sending and requesting e-Signatures.

 

If that is what you are referring to, below is the appropriate guidance that took you half an hour to figure out on your own:

 

 

 

 

NOTE:

If you truly meant your appreciation for "making me think", check out these other insightful discussions about date and time while editing PDF documents using Adobe Acrobat Pro DC  (not the Acrobat Sign add-on):

 

 

 

 

 

waterman8
Participant
March 5, 2024

I am trying to do the same thing, I want my clients to type in MMDDYYYY but I want it to output: "MM/DD/YYYY" or at least "MM DD YYYY" 

and then I can add in the //'s later. I am wildly surprised this isn't an option, I do this all the time as a client on other apps. I think a workaround would be make 3 separate text fields and let the user bounce from MM to DD to YYYY on their own, and I will create static "/"'s on my own in between them.

Nesa Nurani
Community Expert
Community Expert
March 6, 2024

Try this as custom format script:

if (event.value.length == 😎 {
event.value = event.value.substring(0,2) + "/" + event.value.substring(2,4) + "/" + event.value.substring(4);}

ls_rbls
Community Expert
Community Expert
February 12, 2020

Hi,

 

 

See this guidance to get familiarized:  https://helpx.adobe.com/acrobat/using/pdf-form-field-properties.html 

 

Right-click on the date field that you want to format and select the Format tab.

 

From the dropdown menu select Date, then custom.

 

  1. In the blank below that type in how you want the date to be displayed, for example: ddmmyyyy.

 

Click OK when you're done.

 

 

SerionDEAuthor
Participant
February 13, 2020

Hey,

 

thanks for your help. I tried it like this. It accepts the input as DDMMYYYY, but the output is exact the same. I want the input of the users to be like DDMMYYYY and the output in the form should be DD.MM.YYYY. Sorry if my description was not clear enough.

 

Serion

Thom Parker
Community Expert
Community Expert
February 13, 2020

So you want the input format to be different from the output format? What you want is possible, but to do this requires some custom work beyond what Acrobat can do with the built-in date functons.

 

Acrobat uses JavaScript functions to restrict the user input with a Keystroke event and control the output with a Format event. You'll need to set these up with custom code, unfortunately the code that Acrobat uses won't work exactly for you, because these fucntions expect the input format to be the same as the output format. But you can modify thier code to do what you want .

 

These functions are:

AFDate_FormatEx("dd.mm.yyyy");

AFDate_KeystrokeEx("ddmmyyyy");

 

Be warned, this is an advanced programming task. 

 

 

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often