Click here to Skip to main content
16,021,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir,,
i make a simple progrram so i have diffcultes
i use mask txt box for showing dateof birth for the user
but in this user input any month ,date and year so they take
but i want only 31 days and 12 month and particular year come
if user insert invalid date, month or year so show message this is invaild date, month and year
please anyone give the code of this problem
Thank you........
Posted

1 solution

Use Regular expressions for it.

Here you go:
Regular Expression Matching a Valid Date[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900