• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

converting to date format

 
anil bisht
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 7302
45
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please have a look at the JavaDocs for the package java.text.* Checkout DateFormat and SimpleDateFormat
Junilu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic