• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

From MMddyyy String to Date

 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have a string in the format of "MMddyyyy" and I can convert it to java util Date. No problme. Now, if I create two strings with same "MMddyyyy" content, is it guaranteed that after I convert them to Date, then when I compare date_1 and date_2, JVM will always show me they date_1 and date_2 are equal ? I mean, does JVM theoretically ALWAYS show date_1 and date_2 equal ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic