Title: RE: how to get Date,Month... from date
internal, january is month 0, February month 1 and so on. October is stored as month 9.
 
 
-----Urspr�ngliche Nachricht-----
Von: Rizwan Ahmed [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 29. Oktober 2001 09:22
An: [EMAIL PROTECTED]
Betreff: 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