Hi again,
didn't work. What I did was:
1) i got 3 dates : 2 from fields on Xpage, 1 from NotesDocument to make a comparison : (1)xPage<=documentDate<=(2)xPage
2) Got .toString representation of all the 3 dates
3) sent them to the function which formatted them all as dd.mm.yy:
var dat1=new Date();
dat1.setDate(date.left(2));
dat1.setMonth(date.mid(3,2)-1);
dat1.setFullYear(date.right(4));
4) I checked values via console: (1) xPage = 31.12.10 , documentDate=01.02.11 , (2)xPage = 01.03.11
5) then I get the already mentioned result of comparison:
31.12.10 <=01.02.11 False
01.02.11 <= 01.03.11 True