Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting first and last date of past 6 months?

 
vinoth Robert
Ranch Hand
Posts: 31
Firefox Browser MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i want to get the first date and last date of the past 6 months.
for each month the first and last date is needed.

any idea please?
 
anirudh jagithyala
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Did you check out with Date class.....?
Date class has various methods that may serve your purpose.

Your question is not clear to me but to the extent i understand.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you need to this in SQL? It's easier to use the Calendar class in Java and pass it into your query.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic