View Single Post
  #2 (permalink)  
Old April 20th, 2007, 02:48 AM
iamrakesh22 iamrakesh22 is offline
Friend of Wrox
Points: 1,108, Level: 13
Points: 1,108, Level: 13 Points: 1,108, Level: 13 Points: 1,108, Level: 13
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
The Date class's getMonth() will give month starting from 0, i.e. 0 for Jan and so on. The getYear() method will give you the year starting from 1900 for 2007 it'll give 107.

Regards,
Rakesh
Reply With Quote