I used jQuery datepicker and I want to restrict my input field with a HTML5 pattern if a user, instead of getting the date from jQuery datepicker, types the date.
H
Below pattern perfectly works in case of leap year and as well as with normal dates. The date format is : YYYY-MM-DD
I got this solution from http://html5pattern.com/Dates. Hope it may help someone.