• 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