• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

Formating Input Values dd/mm/yyyy

I have an input form which has date values that I would like to make sure are entered in the following format: dd/mm/yyyy

Is there a way to enforce this?
0
pinkstonm
Asked:
pinkstonm
  • 2
  • 2
  • 2
1 Solution
 
webwomanCommented:
Not really.

YOu can check to see if it matches a date using a client side javascript validation, but I doubt there's a FP wizard to do it. And there are many dates that are still valid even if you enter them mm/dd/yy instead of dd/mm/yy.
0
 
pinkstonmAuthor Commented:
well that stinks hmmmmm
0
 
CRagsdellCommented:
Use drop down boxes to develop the date- use on for the month, then another for the days, and finally another for the year. Then combine them to give you the format of date you need:

Request.Form("Month") & "/" & Request.Form("Day") & Request.Form("Year")

0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
CRagsdellCommented:
Ooops, just realized you wanted days first, and that I left out a slash:

Request.Form("Day") & "/" & Request.Form("Month") & "/" & Request.Form("Year")
0
 
webwomanCommented:
That would work nicely... good option. ;-)
0
 
pinkstonmAuthor Commented:
Good Solution
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now