Title: RE: how to get Date,Month... from date
yes..when u get the month it returns an int as 0 for jan and 11 for december so u wd need to add one to the month or else
make an array of strings for each of the months.
 
anoop
----- Original Message -----
Sent: Monday, October 29, 2001 1:51 PM
Subject: Re: how to get Date,Month... from date

Wayan

Why am I getting (current) month as 9 instead of 10.

Do I have to add 1 to the month?.

Thanks again

Rizwan


      Wayan

      that's it.

      thanks much

      Regards

      Rizwan 

       

       Hi,

       

      I think because you have these two import statements in your code,

      java.sql.* and java.util.*, (or maybe other packages that have a Date class) 

      these both package have the Date class, so just use java.util.Date as the

      object reference type instead of Date.

       

      regards,

      wayan

       



Reply via email to