Hello:

Well, I have a problem with a component that manage dinamically a TextField and DatePicker but their values are managed through a only one value parameter that is a String. So into the application that work with this component, has to manage a String value (because TextField) and because everything can be represented as a String. The problem is because the getter, when the DatePicked expect a Date, -but exist only one getter that returns a String- send a String and this value cannot be converted into a Date again, the solution that I try is, if the String returned by the DatePicker is always under the same format I can convert it to a format that the DatePicker can convert to a Date and avoid the unparseable error. Or how I can into the component convert the string to Date and pass it to the DatePicker dinamically generated?

Thanks for your time

JQ

Adam Zimowski escribió:
Not sure if I understand exactly, so please correct me if my
suggestion is not what you're looking for.

DatePicker returns java.util.Date, and you could use DateFormat to get
any format you want, including String conversion. Is this what you're
looking for?

Regards,
Adam

On 3/1/06, Jorge Quiroga <[EMAIL PROTECTED]> wrote:
Hello:

Excuse me if the question is quite obvious, but I wanna be sure if the
String that return the DatePicker component is always with this format:
EEE MMM dd HH:mm:ss z yyyy with local in en_US.

Thanks in advance.

JQ


---------------------------------------------------------------------
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]





--
 Ing. Jorge Enrique Quiroga
Analista programador
PCT LTDA

Teléfonos: 4800069-4800046-4811984
Dirección: Carrera 28 bis Nº 51-08
Bogota D.C. - Colombia


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

Reply via email to