We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Can't get date to format and validate properly

mike_silver
mike_silver asked
on
Medium Priority
1,649 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
Comment
Watch Question

James MurrellQA Product Specialist
CERTIFIED EXPERT

Commented:
dont ask how.. but i think i allow zeros  but hows this
Order-Form-Test.pdf

Author

Commented:
Sorry, still can't get it to work correctly
James MurrellQA Product Specialist
CERTIFIED EXPERT

Commented:
what wrong with one i did date format is correct?

Author

Commented:
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.

Author

Commented:
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!
I needed an answer an no one stepped up. Closing.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.