Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Steve Jiang
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at DateFormat API
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic