what is the validation for Date Of Birth?

Posted by Tejamanimala under ASP.NET on 3/15/2013 | Points: 10 | Views : 2230 | Status : [Member] | Replies : 6
hi,can any one tell me the validation for Date Of Birth,it should be in the format of dd-mm-yy.

manimala


Responses

Posted by: Chaithragm on: 3/15/2013 [Member] Starter | Points: 25

Up
0
Down
use calander (AjaxControlToolkit) or many java script functions are available for dob

http://stackoverflow.com/questions/11009976/how-to-validate-date-of-birth-with-three-textbox-of-date-month-year-by-jquery-va

Tejamanimala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikreddy on: 3/15/2013 [Member] Starter | Points: 25

Up
0
Down
regular expression for date
/^((175[7-9])|(17[6-9][0-9])|(1[8-9][0-9][0-9])|(0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])[-]([2-9][0-9][0-9][0-9]))*/;

k@rth!k
karthikreddy08a50@gmail.com

Tejamanimala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tejamanimala on: 3/18/2013 [Member] Starter | Points: 25

Up
0
Down
hi,karthik,when i use this,the registration page isnot going to next page,when i remove it,it is going to next page.can ypu please tell me what shoul i do?i used it in validationExpression="/^((175[7-9])|(17[6-9][0-9])|(1[8-9][0-9][0-9])|(0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])[-]([2-9][0-9][0-9][0-9]))*/"
but its not working,please help me?

manimala

Tejamanimala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tejamanimala on: 3/18/2013 [Member] Starter | Points: 25

Up
0
Down
hi,karthik,when i use this,the registration page isnot going to next page,when i remove it,it is going to next page.can ypu please tell me what shoul i do?i used it in validationExpression="/^((175[7-9])|(17[6-9][0-9])|(1[8-9][0-9][0-9])|(0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])[-]([2-9][0-9][0-9][0-9]))*/"
but its not working,please help me?

manimala

Tejamanimala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikreddy on: 3/18/2013 [Member] Starter | Points: 25

Up
0
Down
please post the error .

k@rth!k
karthikreddy08a50@gmail.com

Tejamanimala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tejamanimala on: 3/18/2013 [Member] Starter | Points: 25

Up
0
Down
it's doesn't displaying the error, when i enter date of birth,after clicking on submit button,simply it doesn't go to the next page.

manimala

Tejamanimala, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response