[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Can't get date to format and validate properly

Posted on 2009-02-11
6
Medium Priority
?
1,640 Views
Last Modified: 2012-05-06
I have a date field, Order Date, that is required. I want the user to be able to enter only as m/d/yyyy (so they don't have to enter the leading zeros on month and day), but it needs to show on the form and validate as mm/dd/yyyy. Also, I need to default the date to current date. When I default the date and then don't change it, when pressing the Submit By Email button I get the message that I have entered in the Validation Pattern Message. If I change the date manually or with the date picker it works fine. It has nothing to do with the Submit by Email button, it has to do with the default and the validation patterns. I have tried defaulting the date in many formats and tried many different things with the validation patterns. Example attached.
Order-Form-Test.pdf
0
Comment
Question by:mike_silver
  • 4
  • 2
6 Comments
 
LVL 31

Expert Comment

by:James Murrell
ID: 23626895
dont ask how.. but i think i allow zeros  but hows this
Order-Form-Test.pdf
0
 

Author Comment

by:mike_silver
ID: 23635719
Sorry, still can't get it to work correctly
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 23635899
what wrong with one i did date format is correct?
0
Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

 

Author Comment

by:mike_silver
ID: 23636133
I need the date to default to current date and be able to press Email immediately without getting error. If the user changes the date it needs to be selected from the calendar or entered as m/d/yyyy. The date always needs to show as mm/dd/yyyy.
0
 

Author Comment

by:mike_silver
ID: 23642903
Come on someone! I need help! I've been using the site for a long time for standard answers. I've only asked for personalized help a few times. 500 Points!
0
 

Accepted Solution

by:
mike_silver earned 0 total points
ID: 23676631
I needed an answer an no one stepped up. Closing.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question