It's not a secret anymore!*
The moose likes Java in General and the fly likes converting to date format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "converting to date format" Watch "converting to date format" New topic
Author

converting to date format

anil bisht
Ranch Hand

Joined: Nov 04, 2000
Posts: 81
I have date in the format
String s1 = 2001-11-16 12:12:12.12 this is in some string( not date)
String s2 = 2001-11-17 12:12:12.12 this is in some string ( not date)
I have to compare these two dates how can i do it ???
TIA
Anil

Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4446
    
    5

Please have a look at the JavaDocs for the package java.text.* Checkout DateFormat and SimpleDateFormat
Junilu


Junilu - [How to Ask Questions] [How to Answer Questions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: converting to date format
 
Similar Threads
String to date conv
Dates help
date conversion
converting date strings
How to use DateFormat