This content has been marked as final.
Show 3 replies
-
1. Re: Comparing dates
wrzep May 20, 2009 4:20 PM (in response to jkleiser)That is not much a Seam related question ;)
Joda time library is pretty powerful with the dates handling.
Cheers,
-Pawel
-
2. Re: Comparing dates
luxspes May 20, 2009 4:48 PM (in response to jkleiser)
Jon Kleiser wrote on May 20, 2009 16:05:
What we really want is to compare a truncated currentDate against a (truncated) deadline. Is there a nice and easy way to do that?Let me Google that for you . Was that so hard?
-
3. Re: Comparing dates
ambrish_kumar May 20, 2009 4:55 PM (in response to jkleiser)Please try this,
SimpleDateFormat sdf = new SimpleDateFormat ( "MM/dd/yyyy" ) ; Date beforeDate = sdf.format ( dateobjecttobecompared ) ) ; if ( !beforeDate.before ( sdf.format (new java.util.Date ()))) return false;
Thanks
Ambrish