aspose file tools
The moose likes Beginning Java and the fly likes java date -> RFC 2822 format Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "java date -> RFC 2822 format" Watch "java date -> RFC 2822 format" New topic
Author

java date -> RFC 2822 format

Stu Thompson
Hooplehead
Ranch Hand

Joined: Jun 14, 2006
Posts: 136
Hi all,

Is there not a straight forward, terse way to describe a java date type as a string in RFC 2822 ("Wed, 02 Oct 2002 15:00:00 +0200") or any other standard format (like 8601)?

thanks,

stu
[ August 08, 2006: Message edited by: Stu Thompson ]

"This is not to say that design is unnecessary. But after a certain point, design is just speculation." --Philip Chu
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8290

You can do any format you like with java.text.SimpleDateFormat.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: java date -> RFC 2822 format
 
Similar Threads
Deprecated method and parsing rfc2822 date.
Date comparision in SQL from timestamp
unable to retrieve timestamp in my servlet
Convert date format to timestamp
convert date format