Pablo Vázquez Blázquez wrote:
Hello,
I´m using the datetimepicker tag with type="time" to get only the time
and another one with type="date" to get only the "yyyy-MM-dd". Well,
the second one works OK but the first one, gives me the actual date +
the time the user has input. For example (if the user selects 10:00
a.m.): 20071210-'T'-10:00 or sth so. Could I get only the "10:00"
value without parsing then the value in an action??
Thanks.
Regards.
I don't think so. Looks like you're using Struts 2.1... It uses that
format so it can directly set a Date property in your action. Not so
useful for time-only properties.
If you don't like that, I suggest creating a custom converter for that
specific property that converts 20071210-'T'-10:00 to 10:10 as a String.
http://struts.apache.org/2.x/docs/type-conversion.html
Then you can at least re-use the converter rather than repeating the
conversion code in your actions.
Hope that helps,
Jeromy Evans
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]