• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying Date in Format "mm/dd/yyyy"  RSS feed

 
payal Jain
Ranch Hand
Posts: 50
  • 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
Sheriff
Posts: 15862
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use MM for months - mm is for minutes.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!