Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LeapCentury--Date fun. fails to identify?

 
chandrakant shirole
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
e.g
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.
from
cus
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic