my dog learned polymorphism*
The moose likes Servlets and the fly likes LeapCentury--Date fun. fails to identify? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "LeapCentury--Date fun. fails to identify?" Watch "LeapCentury--Date fun. fails to identify?" New topic

LeapCentury--Date fun. fails to identify?

chandrakant shirole

Joined: Jan 30, 2001
Posts: 2
hi friends
basically i've problem of calculating next dates from a specific dates with a difference of month i wrote one bean and i succed in calculating it but i am facing a prob when the date is
29-feb-2000(any leap century year)
Date date=new Date(2000,1,29);
when i try to extract yr,month and days using method of Date Class it returns me-->1-2-2000 i.e of course next date, how can this prob be solved.
It is sorta covered in the JavaRanch Style Guide.
subject: LeapCentury--Date fun. fails to identify?
Similar Threads
Print the first Friday of every month...
oh dear....
Inserting and selecting uncertain dates (eg 2001-00-00)
Date Calculation