Link to home
Start Free TrialLog in
Avatar of military donut
military donutFlag for United States of America

asked on

validate input mask proper date mm/dd/yyyy

Hello

I have an input mask on a DOB field as a date, currently they can enter date as dd/mm/yyyy, but I want it as a standard format

How can I check to be sure this is correct?
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

I'm not sure what you mean by "standard format", so you'd have to provide a definition for that.

An Input Mask will require the user to enter data that conforms to the mask, so ... if that mask forces the desired format, then you should be okay.
Avatar of military donut

ASKER

Ok...so the mask is
00/00/0000;0;_

Which apparently allows: 15/05/1980

But I want that to be: 05/15/1980

I want to make sure it is this date way.  Field is text may be I should change to a date field type?
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks to everyone for their input and help, very informative and taken....

Thanks I am on the right track now....