Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calculate the year from no of days

 
Jameela Rehman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody!

I want to calculate the Year on the behalf of no of days. How is it possible in java. please provide me complete example.

your friend.
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jameela Rehman:
Hi everybody!

I want to calculate the Year on the behalf of no of days. How is it possible in java. please provide me complete example.

your friend.


Number of days since when? What is the starting point?
 
Jameela Rehman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jameela Rehman:
Hi everybody!

I want to calculate the Year on the behalf of no of days. How is it possible in java. please provide me complete example.

for example

days = '07/02/2006'- '31/12/1982';

your friend.
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have a look at the java.util.Calendat, java.util.Date classes....
and:
please provide me complete example.


probably wont work here... you might get hints and explanations.... but no complete examples and solutions....


p
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic