wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Dateformat conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Dateformat conversion" Watch "Dateformat conversion" New topic

Dateformat conversion

renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116

I have a string like this Sun Dec 17 09:30:47 GMT+05:30 2000. Now i want to convert this date into this format yyyy-MM-dd'T'HH:mm:ss. Can anyone please tell me how to do this.

Many Thanks

Onkar Joshi
Ranch Hand

Joined: Mar 01, 2007
Posts: 116
Try this

See here for details : http://java.sun.com/j2se/1.5.0/docs/api/java/text/DateFormat.html

SCJP 5 - 95% | SCWCD 1.4 - 88% | SCBCD 5 - 93%
Onkar Joshi's blog | LinkedIn profile
I agree. Here's the link: http://aspose.com/file-tools
subject: Dateformat conversion
Similar Threads
Average age of Ranchers
if statements
URL logic game
Percentage of java 5 related questions
Warthog Launch