File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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).]
I agree. Here's the link:
subject: converting date strings
Similar Threads
Adding integer to Date
Error 500- Internal servlet error
Date Format
problem in was start up...
Java API - to get next year