Title: 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