This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes converting date strings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "converting date strings" Watch "converting date strings" New topic
Author

converting date strings

scottie zman
Ranch Hand

Joined: Aug 08, 2001
Posts: 40
I have some date fields in a database storing dates like this:
2001-09-12 12:43:18.483
How do I take this, a String, and manipulate the way it is displayed. I would like it to be:
09-12-2001 12:43
thanks
Zman
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

http://www.javaranch.com/ubb/Forum33/HTML/003368.html

Look at my entry on this thread.
[This message has been edited by Mike Curwen (edited September 18, 2001).]
 
Don't get me started about those stupid light bulbs.
 
subject: converting date strings