Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i have a asp form that has 2 textbox that require a user to enter ID Number and Date of Birth & i use a calendar to enter date. i need a code to match ID Number and Date fo Birth; Example the user enter this ID No:920527 1234 56 7 and it must allow a user to pick this date in a calendar DOB: 1992/05/27. NOT ANY Date Of Birth.
Posted
Comments
BillWoodruff 4-Nov-11 6:30am    
I think I'm missing the point here: if the user enters the encoded date of birth as a string: why do you need to display a calendar ? Why would ever display a calendar where the user cannot select whatever date.

Please consider re-stating your question describing exactly what the user sees in the beginning, what the user does, and when the calendar is displayed.

1 solution

Take the DOB format it to the same format as the date of birth in the ID number.

Strip the first 6 didgits of the ID numbers and compare it with the formated DOB.

This is realy basic stuff and sounds a lot like a homework question. Therefore I will not be adding code samples.
 
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