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

Date format: month all lower case

Explorer ,
Jun 10, 2017 Jun 10, 2017

Is there a way that I could make the month all lower case once the date has been validated? I've tried event.value = event.value.toLowerCase() in the action tab once the field is deactivated and what not... 

It may not seem like much but it's a flagrant spelling error in French. Thank you if someone can help.

DateQ.jpg

TOPICS
Acrobat SDK and JavaScript
1.3K
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

correct answers 1 Correct answer

Community Expert , Jun 11, 2017 Jun 11, 2017

Hi.

To get a French date (without cap letters) you must use this:

event.target.value = util.printd("date(fr){D MMMM YYYY}", new Date(), true)

Translate
LEGEND ,
Jun 10, 2017 Jun 10, 2017

Not unless you want to write custom scripts for keystroke, format, and validation. Note you will need to perform the necessary date validation to insure only valid dates are entered.

You might want to file a Feature Request/Bug Report through Adobe.com.

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
Explorer ,
Jun 10, 2017 Jun 10, 2017

Thank you.

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
Community Expert ,
Jun 10, 2017 Jun 10, 2017

I believe some forum regulars already developed this code... Try searching for similar keywords like "french date format".

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
Explorer ,
Jun 10, 2017 Jun 10, 2017

Thank you for the tip. What I found was specific to number format, couldn't find anything related to the date. I'll look on the web.

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
Community Expert ,
Jun 11, 2017 Jun 11, 2017

Hi.

To get a French date (without cap letters) you must use this:

event.target.value = util.printd("date(fr){D MMMM YYYY}", new Date(), true)


Acrobate du PDF, InDesigner et Photoshopographe
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
Explorer ,
Jun 11, 2017 Jun 11, 2017

Hi, the format is right. Is there a way that I can apply this to a date chosen from the calendar field without deactivating the calendar?  Thank you so much.

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
Community Expert ,
Jun 11, 2017 Jun 11, 2017
LATEST

I don't know if it's doable with the embedded date picker, but it works fine with my MagicDate picker: https://www.abracadabrapdf.net/utilities-in-english/acrobat-utilities/magicdate-picker/


Acrobate du PDF, InDesigner et Photoshopographe
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