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

How do I make a custom date format to be "MMM DD YYYY" in uppercase?

New Here ,
Sep 15, 2016 Sep 15, 2016

I tried doing custom format, but it only allows lower case.  I would like "Sep 21 2016" to read "SEP 21 2016".  At the same time, I am looking to validate it so that this is the only acceptable data in this field.  I am still quite new to Adobe pro, but I know where to put the javascript for formatting, validation, and keystroke.  I have done a lot of searches but I can't seem to find the solution that takes a date and makes it uppercase while still validating the actual date.  In a perfect world, I am also hoping that before a user types anything in, I would like to have the format of the date box be visible until they start typing, but in a gray font.  "MMM DD YYYY".  Is this possible?  Any help is greatly appreciated.

TOPICS
Acrobat SDK and JavaScript
808
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
LEGEND ,
Sep 15, 2016 Sep 15, 2016

You have to use the "Format" tab with the "None" option and then select the "Custom" option and the custom JavaScript to format the date object and then convert that string to upper case.

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 ,
Sep 15, 2016 Sep 15, 2016
LATEST

Do you know what the javascript would be to do that for the value of a field call "DateBox"?

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