Thank you for reply.
    I wrote a converter which converts a String to Date(I found an example
at archives). It converts a String to Date. When data is copied from a bean
which have Date type to bean with String property it is not formatting date.
Do you understand else I will post code of what I did.

Antony Paul

----- Original Message -----
From: "James Carman" <[EMAIL PROTECTED]>
To: "'Jakarta Commons Users List'" <[EMAIL PROTECTED]>
Sent: Friday, March 19, 2004 6:26 PM
Subject: RE: [BeanUtils] Converting Date to String & String to Date.


You could write your own converter, using SimpleDateFormat, if you wish.  I
would use the source code for some of the other converters as an example.

-----Original Message-----
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 7:36 AM
To: [EMAIL PROTECTED]
Subject: [BeanUtils] Converting Date to String & String to Date.

Hi all,
    I am learning BeanUtils. Converting a String to a destination beans type
while copying properties is a nice feature. But is the reverse is possible.
It seems that when converting a Date to String it is calling its toString()
method. But I dont want this behaviour. I want to format this which is
required for presentation layer.  Is this possible ?. Does any one have
written a converter for this.

rgds
Antony Paul.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to