Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Validating Dates in igDatePicker
posted

Could you please provide a sample code for validate date I mean if user entered wrong date format it simply show an error...

currently I have used code....

$("#signDate").igDatePicker({
width: "180px",
dataMode: "date",
datepickerOptions: {
changeYear: true,
changMonth: true,
minDate: new Date(1900, 01, 01),
maxDate: new Date(2100, 01, 01),
},
placeHolder: "Signed Date"
});

and i want to full validation may be solved by 2 ways...

1. user not able to enter manually...

2. proper validation of wrong datetype

Thanks

Pankaj