I have read lots of website for date checking. However, some of those are useless because I want to set the date format to dd/MM/yyyy
.
var result = new Date(input);
if (result == 'Invalid Date') {
return false;
For the code above,
- it is still valid if i enter '60/09/02016'.
- it return MM/dd/yyyy