months go from 0 to 11 Scott E Washburn wrote: > Does anybody know why I would be getting an incorrect month from the > Calendar object? > I'm using VA for Java 2.0 Enterprise JDK 1.1.6. > > Heres the code I'm using: > > Calendar MyCalendar = Calendar.getInstance(); > int iMonth = MyCalendar.get( Calendar.MONTH ); > int iDay = MyCalendar.get( Calendar.DATE ); > int iYear = MyCalendar.get( Calendar.YEAR ); > > With the computer set to todays date 5/28/1999, > > I'm getting : > iMonth = 4 > iDay = 28 > iYear = 1999 > > Why would I be getting a 4 for the Month instead of 5. > I've run this in several other machines and it returns the same thing. > > Please help????? > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html -- Trudat! http://www.trudat.com
begin:vcard n:Fox;Christopher tel;cell:(917) 673-5414 tel;fax:(2120 863-9734 tel;work:(212) 863-9362 x-mozilla-html:FALSE url:http://www.trudat.com/fox/resume.htm org:trudat.com version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;71 Broadway=0D=0ASuite 16K;New York;NY;10006-2610;USA x-mozilla-cpt:;6720 fn:Christopher S. Fox end:vcard
