GeeCON Prague 2014*
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
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 61318
    
  66

What happened when you tried it?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: From MMddyyy String to Date