wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "converting date strings" Watch "converting date strings" New topic

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
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695


Look at my entry on this thread.
[This message has been edited by Mike Curwen (edited September 18, 2001).]
It is sorta covered in the JavaRanch Style Guide.
subject: converting date strings
Similar Threads
Date Format
Adding integer to Date
problem in was start up...
Java API - to get next year
Error 500- Internal servlet error