This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Date Problems 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 » Java in General
Bookmark "Date Problems" Watch "Date Problems" New topic
Author

Date Problems

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Hello,
I am trying to convert this Date Format "Mon May 01 18:00:00 EDT 2006" into"5/01/2006 6:00 PM", Does any one have an Idea
Ramen Chatterjee
Ranch Hand

Joined: Apr 27, 2006
Posts: 62
Hi

Check out the Sun internationalisation tutorial, particularly the part for date formatting.

Good luck

Ramen


Could try harder
Adam Richards
Ranch Hand

Joined: Nov 03, 2005
Posts: 135
Reading between the lines, it sounds like your question is really "how do I output the date value in format xxx?"

You may be confusing the date's value with its string representation, which are two different things. A Date (or practically any object, for that matter), can be represented as a string in an almost infinite number of ways. How you do that is controlled by a formatting class, as the other reply indicates. Hope this clarifies rather than obfuscates things.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date Problems
 
Similar Threads
Convert to timestamp yyyy-MM-dd hh:mm:ss a
Date object
calendar to date and timezone
problem while inserting date field in oracle data base
cant print Date or time