Menu

#10 Error in DateField setDate()

open
nobody
me4se (8)
5
2004-07-07
2004-07-07
Anonymous
No

There is still an error in ME4SE 2.1.3 in class
DateField with day:
setDate(2007-07-07) results in (2007-07-08);

I tried with following fix in Method setDate() and it
seems to work:

dateField.setText(digits(c.get(Calendar.YEAR), 4) +
"-" + digits(c.get(Calendar.MONTH) +
1-Calendar.JANUARY, 2) + "-" +
digits(c.get(Calendar.DAY_OF_MONTH), 2));

regards
Sabine
email:sabine.plunder@gmx.at

Discussion


Log in to post a comment.