Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

converting to date format  RSS feed

 
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
Sheriff
Posts: 10879
158
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!