This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread 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 Elasticsearch in Action this week in the Big Data 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