Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Date picker transposing day and month numbers, generating JS error

New Here ,
Apr 22, 2020 Apr 22, 2020

Need to be able to use date picker to display the day of week as well as date. I had to add this as a custom:

ddd mm/dd/yy (.ie, Wed 04/22/20)

 

When I pick a date beyond the 12th of any month, I get a Javascript warning:

 

Invalid date/time: please make sure that date/time exists.  Field [ Date4_af_date ] should match format ddd mm/dd/yy.

 

Obviously, when the user clicks on a date in the calendar date picker, it is flipping the day number into the month field.  What am I doing wrong?

 

 

TOPICS
PDF forms
834
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
New Here ,
Apr 22, 2020 Apr 22, 2020
LATEST

Figured out my own workaround.  If I use a custom format that does NOT use a numerical version of the month, this issue goes away.  Takes up a little more space, but it does not generate an error. Went with this format:

 

ddd, mmm dd, yyyy

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 22, 2020 Apr 22, 2020
LATEST

Figured out my own workaround.  If I use a custom format that does NOT use a numerical version of the month, this issue goes away.  Takes up a little more space, but it does not generate an error. Went with this format:

 

ddd, mmm dd, yyyy

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines