Retrieving current month
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Patrick_Bowe
Posted On:   Tuesday, December 18, 2001 01:00 PM

How can I retrieve the current month using the Date classes?

Re: Retrieving current month

Posted By:   Christopher_Schultz  
Posted On:   Tuesday, December 18, 2001 01:24 PM

Hi,




Date today = newDate();



This will give you today's date.




int month = today.getMonth();



This will give you the current month, with 0 = January, 1 = February, etc.



Hope that helps,

-chris
About | Sitemap | Contact