File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes String to date conv Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "String to date conv" Watch "String to date conv" New topic

String to date conv

sreeni san
Ranch Hand

Joined: Aug 14, 2001
Posts: 39
I have date returned in a string in the format 2001-12-05 16:34:53.93 from the database. I have another date of the same format returned in a String from the database. I need to compare both of these and find the greater date.
How do I do these.
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
This should do the trick...

Hope that helps,

SCJP Tipline, etc.
I agree. Here's the link:
subject: String to date conv
It's not a secret anymore!