how to check text entered in textBox is a Valid Date or not in javascript

2

(In order to Enlarge images Please Right Click and Open images in New Tab)

ff2

 

Use this function

var isValidstartDate = function (date) {
return (new Date(date) !== “Invalid Date” && !isNaN(new Date(date)) ) ? true : false;
}

 

Leave a comment