I am using the following for a user to input a date in a form:
I am wondering if ther
You may try like this:-
function parseDate(input) { var str= input.split('/'); return new Date(str[0], str[1]-1, str[2]); }
str[1]-1 as months start from 0.
str[1]-1
You may also check Date.parse(string) but this implemetation dependent.