Re: date.compareTo() method doesn't work
I had the same problem, as well, I think it had something to do with
where I got the date object from for me (if I create 2 new date
objects on the front end it would work fine, but if I got one of them
from the database then I would have issues). I just ended up doing a
getTime() on both of my date objects to compare them so instead of...
date1.compareTo(date2)
I would do
date1.getTime() - date2.getTime()
I think I have them in the right order...
On Oct 29, 6:05 pm, Sunshine Rain <bar...@brit.com> wrote:
> Any word on this? I just verified that Date.compareTo() does not work
> properly on Firefox,
> Safari and Chrome on a Mac, but does work in hosted mode. I used a
> TreeSet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home