commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <GGreg...@seagullsoftware.com>
Subject RE: [Lang] Null safe date comparisson
Date Thu, 06 Jan 2011 16:38:08 GMT
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


Mime
View raw message