Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

date  RSS feed

 
velgapudi suresh
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

in my programme i have to filed i.e Fromdate and Todate
if ianybody given dates i want to print the date from that range
i.e 09/25/2006 to 10/02/2006 so i want to print all the date in this date between

thanks
Suresh V
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding is that you want to print the date range between a given from date and to date.

I guess you could do this by instantiating a Gregorian calendar class with the from date and then adding a day every time in a loop until the "to date" is reached.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Advanced?

Moving to Java in General (Beginner).
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Use Calendar, add(Calendar.<XXX>,<int count> ;
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!