Servoy gives a wrong date when I use the function “new Date()”.
The calculation “return new Date(2004,1,1,0,0,0);” gives “01-02-2004”.
Servoy gives a date 1 month later.
In the preferences the Date Format is: “dd-MM-yyyy”.
Alexander Schrijvershof:
Servoy gives a wrong date when I use the function “new Date()”.
The calculation “return new Date(2004,1,1,0,0,0);” gives “01-02-2004”.
Servoy gives a date 1 month later.
In the preferences the Date Format is: “dd-MM-yyyy”.
Do I something wrong or is this a bug?
Alexander Schrijvershof
The calculation:
var x = new Date(2004,1,1,0,0,0);
a.setUTCDate(0);
return a;