• Post Reply Bookmark Topic Watch Topic
  • New Topic

Date format conversion.  RSS feed

 
sriram sundararajan
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to get the date (mm/dd/yyyy) and time (hh:mm:ss) from this string "2009-03-01T09:00:00Z".

please do send me the code snippet for this.

regards
sriram.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at java.text.SimpleDateFormat. That should give you the methods you need to do this.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sriram sundararajan wrote:please do send me the code snippet for this.

http://faq.javaranch.com/java/NotACodeMill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!