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 Timestamp to RFC 1123 format  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Timestamp to RFC 1123 format  "Tue, 6 Sep 2005 13:26:00 GMT"" Watch "Timestamp to RFC 1123 format  "Tue, 6 Sep 2005 13:26:00 GMT"" New topic
Author

Timestamp to RFC 1123 format "Tue, 6 Sep 2005 13:26:00 GMT"

Steve Jiang
Ranch Hand

Joined: May 17, 2004
Posts: 107
is there a simple way to change TimeStamp output format from 2005-05-16 17:14:16.0 to RFC 1123-style timestamps format "Tue, 6 Sep 2005 13:26:00 GMT"?

Thanks,

Steve
[ September 07, 2005: Message edited by: Steve Jiang ]
Jayesh Lalwani
Ranch Hand

Joined: Nov 05, 2004
Posts: 502
Take a look at DateFormat API
 
 
subject: Timestamp to RFC 1123 format "Tue, 6 Sep 2005 13:26:00 GMT"