commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ludwig Magnusson" <lud...@itcatapult.com>
Subject RE: [Lang] Null safe date comparisson
Date Thu, 06 Jan 2011 17:29:24 GMT
I use Joda-time a lot so I'm familiar with it. Do they really have a class
that does what I asked?

As far as I know, they only have their own implementations. I need null-safe
comparisons on java.util.Date

/Ludwig

 

From: Gary Gregory [mailto:GGregory@seagullsoftware.com] 
Sent: den 6 januari 2011 17:38
To: Commons Users List
Subject: RE: [Lang] Null safe date comparisson

 

Look at Joda-Time http://joda-time.sourceforge.net/

Gary Gregory
Senior Software Engineer
Rocket Software
3340 Peachtree Road, Suite 820 . Atlanta, GA 30326 . USA
Tel: +1.404.760.1560
Email: ggregory@seagullsoftware.com
Web: seagull.rocketsoftware.com 


> -----Original Message-----
> From: Ludwig Magnusson [mailto:ludwig@itcatapult.com]
> Sent: Thursday, January 06, 2011 11:32
> To: user@commons.apache.org
> Subject: [Lang] Null safe date comparisson
>
> Hi!
>
> I'm looking for a way to do null safe date comparison. Something like:
>
>
>
> public static boolean isBefore(Date first, Date second);
>
>
>
> The method would handle null in an appropriate way.
>
> I haven't found any method like that in DateUtils.
>
> Is there one somewhere?
>
> /Ludwig
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1191 / Virus Database: 1435/3362 - Release Date: 01/05/11


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message