Hey everyone,
Brand new to javascript and had a, hopefully, quick question.
I have pulled a date from our database in the form of mm/dd/yyyy, and would like to convert this to a Date object type. To do this, I have parsed the string to switch it to the following format yyyy,mm,dd.
I have already created a new Date variable using the following:
Date reqDate = new Date(2010,10,14)
and had no issues.
However, if I do the following:
Date reqConvert = new Date (reqDate3)
where reqdate3 = 2010,11,15
I get the following error:
"Invalid Date". If anyone can shed some light on this, I would greatly appreciate it.