RE: JavaScript Date Code (check date selected). Oli G 4.Mar.03 03:30 AM a Web browser Question 2.0.8Windows NT
Hi,
actually, the JS returns the correct date. It is expecting the format
MM/DD/YYYY and if MM > 12 then it will simply add 1 to the given year and sets MM = MM - 12.
So you just have to switch MM and DD when you create a date object.