If you are looking to convert your Date to String, you should be using
java.text.SimpleDateFormat
Cheers,
Bill Thompson
"Wrap the Internet around every brain on the planet and spin the planet.
Software flows in the wires." -Molgen's Metaphorical Corollary to Faraday's Law
http://old.law.columbia.edu/my_pubs/anarchism.html
On Fri, 28 May 1999, Robert A. Crawford wrote:
> On Fri, May 28, 1999 at 01:35:35PM -0400, Scott E Washburn wrote:
> > Does anybody know why I would be getting an incorrect month from the
> > Calendar object?
>
> You're not...
>
> > I'm using VA for Java 2.0 Enterprise JDK 1.1.6.
> > Heres the code I'm using:
> > 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.
>
> Because months are numbered 0...11. Check the docs
> for java.util.Date.
>
> --
> Robert Crawford [EMAIL PROTECTED]
> http://www.iac.net/~crawford
>
> ___________________________________________________________________________
> 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
>
___________________________________________________________________________
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