commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@gmail.com>
Subject Re: Beanutils: Problem with DateConverter
Date Mon, 08 Oct 2007 17:26:18 GMT
I replied to this on the dev@ list - please don't cross-post, thanks

http://tinyurl.com/3y2bqm

Niall

On 10/5/07, Chris Helck <Chris.Helck@us.icap.com> wrote:
> Hi,
>
> I'm trying to use the DateConverter, and it just doesn't seem to work
> (or I don't understand it). Here's my code:
>
>         DateConverter converter = new DateConverter();
>         converter.setPattern("MM/dd/yy");
>         ConvertUtils.register(converter, java.util.Date.class);
>
>         System.out.println(ConvertUtils.convert(new Date()));
>
> The output is: Fri Oct 05 12:22:34 EDT 2007
> I expected to see: 10/5/07
>
> I'm using version 1.8.0-BETA that I rebuilt from the source. I'm aware
> of the bug BEANUTILS-283, but I think I've got the fix.
>
> Regards,
> Christopher Helck
>

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


Mime
View raw message