This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about the date API usage  RSS feed

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
What I want to achieve is quite simple to describe, i.e. I want to return the current date (as a java.util.Date) out of which I will have substracted 30 days.
For example today's date is the 20th December 2007, I want to get the following date: 20th December 2007 - 30 days that is the 20th of November.
Any clue?
Thanks in advance,
Julien.
 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the solution:
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!