This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SimpleDateFormat

 
Chris Stewart
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how I can find yesterdays date in SimpleDateFormat? Currently I use ("20" + "y" + "MM" + "dd") which would give me 20021018 for today. Does anyone know how I could have it give me 20021017 instead? Thanks in advance.
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

p 144 "Java in a Netshell" 3rd edition (with a little mod)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic