my dog learned polymorphism
The moose likes Beginning Java and the fly likes From MMddyyy String to  Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "From MMddyyy String to  Date" Watch "From MMddyyy String to  Date" New topic

From MMddyyy String to Date

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
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

Joined: Jan 10, 2002
Posts: 63865

What happened when you tried it?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: From MMddyyy String to Date
jQuery in Action, 3rd edition