Write a javascript program for the validation case using


You have to implement a JavaScript program for the validation case

Question- Write a JavaScript program for the validation case using the RegExp method.

Validate Date of Birth

a-The user must enter a DOB in the format mm/dd/yyyy/

b-The validation is a two-step process as described below.

c-Your program must validate the format first as given:

d-The part "mm", "dd", and "yy" cannot be "00", "00", and "0000" respectively.

e-The part "mm" must be two-digits such as "01 through 09" or "10 or 11 or 12".

f-The part "dd" must be two-digits such as "01 through 09" or "10 through 31".

g-The part "yyyy" must be between "1900 through 2099" inclusive.

h-Once the format has been validated, the next step is to verify the following:

i-The year entered cannot be greater than the current year (e.g., 2014)

j-If the year entered is the current year, then the day entered cannot be greater than today's date.

k-The date entered must follow these rules, <= if the month is February, <=30 if the month entered is: September, April, June, and November. <=31 for the remaining months.

Full Rating given to whoever can give the JavaScript code to satisfy these needs in the RegExp format.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a javascript program for the validation case using
Reference No:- TGS0966250

Expected delivery within 24 Hours