Hi.
I'm running ASP.NET 1.0, .NET Framework 1.1 and Internet Explorer 6.
If I create a Date() object using javascript with the date "11/04/1973", the Date() object is created setting the day to day 03 instead of 04 as I expected.
Take a look at my sample code, please.
function DisplayDate()
{
// Original date: 11/04/1973
var date = new Date(1973, 10, 4);
// Displays "Sat Nov 3 23:00:00 UTC-0300 1973"
alert(date);
// If I change the date to: 11/05/1973
var date = new Date(1973, 10, 5);
// Displays "Mon Nov 5 00:00:00 UTC-0200 1973"
alert(date);
// If I change the date to: 11/02/1973
var date = new Date(1973, 10, 2);
// Display "Fri Nov 2 00:00:00 UTC-0300 1973"
alert(date);
}
Could you explain that behaviour?
Thanks in advance.
A brazilian friend,
Eduardo Costa.