Custom Validation for dates

  • Thread starter Thread starter daz_oldham
  • Start date Start date
D

daz_oldham

Hi All

I am looking to utilise the validation controls to validate a date of
birth, however, I would like to take it one step further than just
making sure that the user has entered a date.

I have three text boxes for each part of the date (DD, MM, YYYY) and
firstly I would like to make sure that a valid date has been entered.
Further to that, I would like to also check that if chkChild has been
ticked, the age is under to 16.

Is this possible, or am I going to be best off writing the validation
in my own function?

Many thanks

Darren
 
Combine Text from these controls in one string and use Regexp
Hi All

I am looking to utilise the validation controls to validate a date of
birth, however, I would like to take it one step further than just
making sure that the user has entered a date.

I have three text boxes for each part of the date (DD, MM, YYYY) and
firstly I would like to make sure that a valid date has been entered.
Further to that, I would like to also check that if chkChild has been
ticked, the age is under to 16.

Is this possible, or am I going to be best off writing the validation
in my own function?
--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Can I do this in a CustomValidation control, and if so, how do I go
about doing it?

Many thanks

Darren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

date in format "dd/MM/yyyy" validation 9
Checking for valid datetime 5
Check Date Format 1
Validate DateTime 3
Regex.Validate Date and Time 5
date validation 1
Cell Validation 2
Why this doesn't work? 2

Back
Top