Thread
:
problem with java.util.Date
View Single Post
#
2
(
permalink
)
April 20th, 2007, 02:48 AM
iamrakesh22
Friend of Wrox
Points: 1,108, Level: 13
Activity: 2%
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
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
iamrakesh22
View Public Profile
Find all posts by iamrakesh22