I am facing a problem of date validation. I used following reg expression for enter date in dd-mmm-yyyy
format only
dateValidatorRegex = /^(\d{1,2})(-)(?:(\(jan)|(feb)|(mar)|(apr)|(may)|(jun)|(jul)|(aug)|(sep)|(oct)|(nov)|(dec))(-)(\d{4})$/i;
But in this case when I entered date in month of jan
It doesn't passes the validation. Please suggest on it.