Regex to validate date dd-mm-yyyy while typing (on keyup) – Jquery
Screenshot How to validate dd-mm-yyyy with regex, currently I have got yyyy-mm-dd but not able to find for dd-mm-yyyy. Please help as I need on validate on every keyup jsFiddle $("#date").on("keyup", function() { let valid = /^d{0,4}$|^d{4}-0?$|^d{4}-(?:0?[1-9]|1[012])(?:-(?:0?[1-9]?|[12]d|3[01])?)?$/.test(this.value), input = this.value;…