Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!