You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Inamdar, Anil - Cons" <ai...@iso-ne.com> on 2004/04/30 21:54:03 UTC
Date format.
Hello,
I have a getter and setter on a Date field in my Action form.
When I display the field struts seems to call toString on the object.
Is there a way I can control the formatting on the Date object
thanks
Anil
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Date format.
Posted by Hubert Rabago <ja...@yahoo.com>.
Use a String for the form's fields (be it Date, int, double, whatever).
Format the data before it's shown and parse it upon submission.
--- "Inamdar, Anil - Cons" <ai...@iso-ne.com> wrote:
> Hello,
> I have a getter and setter on a Date field in my Action form.
> When I display the field struts seems to call toString on the object.
> Is there a way I can control the formatting on the Date object
> thanks
> Anil
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org