I wrote some code in Javascript that was working without any problem.
But when I put the date October 20, 2013, I was returned the date October 19, 2013.
The same applies to the years 2019, 2024 and 2030 (not tested
previous years and not later).
This problem shows up in all browsers I test (Google Chrome, Internet Explorer, Mozilla Firefox, Opera and Safari).
When I write:
date = new Date("10/20/2013");
document.write(date);
The result I get is:
Sat Oct 19 2013 23:00:00 GMT-0300 (BRT)
Someone could tell me why this is happening and how can I solve this problem?