Skip to main content
doug815
Known Participant
November 24, 2021
Question

date formatting

  • November 24, 2021
  • 5 replies
  • 1119 views

I am working on a form inserting the date.  I was hoping to add the day of the week with the date format.  I checked on the format and went to the custom selection and inserted dddd mm/dd/yyyy.  The hurdle I am trying to get past is, when I go to select a date, I receive a javascript error message telling me that it is the incorrect format that I should use dddd mm/dd/yyyy.  I am javascipt challenged, LOL.  Am I missing a setting somewhere or something? Any guidance or assistance would be appreciated.  I am thinking its a simple issue.

Thanks

Doug

 

This topic has been closed for replies.

5 replies

try67
Community Expert
December 2, 2021

I recommend you use two fields. One with just the date, and another with a calculation script to show the day of week for that selected day.

JR Boulay
Community Expert
November 29, 2021

Such a strange bug.

It correctly displays the date during the alert and when you click OK it disappears (back slashes don't change anything).

You should report it here:https://www.adobe.com/products/wishform.html

 

 

Acrobate du PDF, InDesigner et Photoshopographe
doug815
doug815Author
Known Participant
December 2, 2021

Yeah I know, I did place the dddd for the day of the week at the end of the format and it works perfectly and there isnt an error message.  Weird.

Thanks for the time and assistance.  Hope your thanksgiving was nice and wishing you a Merry Christmas and Happy New Year!

Stay Safe

Stay Healthy

Doug

doug815
doug815Author
Known Participant
November 26, 2021

JR I goofed and added the wrong file. Here is the correct file.

Thanks

JR Boulay
Community Expert
November 25, 2021

Can you share your doc or a sample file?

Acrobate du PDF, InDesigner et Photoshopographe
doug815
doug815Author
Known Participant
November 26, 2021

Thanks for the info and checking.  Its the date of outing line.  I am kinda a novice at doing these but I think its fun doing it.  I appreciate the guidance.

Doug

JR Boulay
Community Expert
November 24, 2021

You must escape the slash using a backslash:

 

dddd mm\/dd\/yyyy

Acrobate du PDF, InDesigner et Photoshopographe
doug815
doug815Author
Known Participant
November 25, 2021

Thanks for the info, I tried that and I still received the date error.  One trick I did try was to put the format as

mm/dd/yyyy  dddd and it seems to work.  

dddd mm\/dd\/yyyy is what I tried

Am I missing something?

Have a Happy Thanksgiving.

Doug