dcsimg
Need help fotr declaring the month or the year
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ugo_Orellana
Posted On:   Friday, July 5, 2002 06:09 AM

I need help for declaring a variable with todays date. I know in order to read a date I declare it in the following way:


Date today = newDate();


What I want to know is how can I read only the month or the year?

Re: Need help fotr declaring the month or the year

Posted By:   Anonymous  
Posted On:   Friday, July 5, 2002 06:12 AM

Calendar.getInstance().get(Calendar.MONTH)
About | Sitemap | Contact