commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ludwig Magnusson" <lud...@itcatapult.com>
Subject Null safe dateformat?
Date Tue, 12 Jan 2010 09:28:40 GMT
Hi!

Commons is famous for its null-safe methods, but are there no null safe
dateFormat methods?

I'm looking for something that looks like DateformatClass.format(date,
formatString) that returns an empty string or null (but at least does not
throw an exception) if the date is null.

 

I looked at DateFormatUtils but it doesn't seem to work like that..

/Ludwig


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