RE: Problem with XMLCalendar

2007-09-21 Thread Wing Yew Poon
This is not a bug. java.util.Calendar.MONTH is 0-based. See http://java.sun.com/j2se/1.4.2/docs/api/constant-values.html#java.util.Calendar.JANUARY . - Wing Yew From: Lew

Re: Problem with XMLCalendar

2007-09-21 Thread Jacob Danner
Hi David, I ran into this sometime ago, but I think its by design. Calendar.MONTH starts at 0 and not January == 1. http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html#MONTH whereas Calendar.DATE starts at 1. Hope this helps, -Jacob Danner So I think you are getting the expected behav