I have a text input box with a date in this format:
like say it might load with the date 2007-04-01 for april 1, 2007…
Answer by rod
Then use the Date function like:
MyDate = new Date(strMonth, strDay, strYear) or
MyDate = new Date(04,01,2007)
Know better? Leave your own answer in the comments!
There are no revisions for this post.