File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying Date in Format "mm/dd/yyyy"

 
payal Jain
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I get a date object as 2008-09-26 and need to be formatted in mm/dd/yyyy format.
i tried with simple date format
which gives mee result as 00/26/2008
can any one tell me why this is happening??
my code is:
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use MM for months - mm is for minutes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic