commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cord Awtry" <kip...@gmail.com>
Subject Re: [BeanUtils] CopyProperties with Dates
Date Mon, 16 Jun 2008 21:43:36 GMT
Chris,

  Thanks. This helped a lot.

    -C-

On Mon, Jun 16, 2008 at 5:33 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Cord,
>
>
> Cord Awtry wrote:
> | I'm using bean utils 1.7.0 (upgrading to 1.8.0 beta isn't really an
> | option). I'm trying to use copyProperties() where the source object's
> getter
> | is a java.util.Calendar and the destination's setter is java.util.Date. I
> | know that 1.8.0 BETA has new converters but does anyone know of
> another way
> | to make this work? Ignore certain properties and then set them by hand?
>
> You could write your own Date -> Calendar converter.
>
> I recently wrote a String->Date/Calendar converter for parsing
> xs:dateTime formats and posted it to the list under the subject
> "[digester] implementation of String->Date for xs:dateTime". You are
> free to steal my code if it helps you.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkhW3B0ACgkQ9CaO5/Lv0PA07ACcDXzUwvquONzqjY7MEKjMHq+s
> FuUAoITUwug9k6fbTNnVPwFk/xPXqB+u
> =0e+0
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

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