File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Dateformat conversion" Watch "Dateformat conversion" New topic
Author

Dateformat conversion

renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Hi,

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


Cheers,
Richard
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