<friday>
Treating them to a nice dinner and a romantic movie usually works ;-)
</friday>

Any reason you cant model them as null?

At any rate, your UI should have them blank when they arent entered so as to avoid confusing the users. If you must store them as 1970 internally then I guess like you say, you will need to compare in the action when you prepopulate the form.




[EMAIL PROTECTED] wrote:




Hi all,

I'm curious as to the best way to treat dates in a struts form when entry
of the date is optional.

Currently I'm storing un-entered optional dates as 1/1/1970.
When I come to display an optional date field on a form, I need to decide
whether to display a formatted date or a blank (by comparing the date to
1/1/1970).
Surely there's a better way?

Regards,
John

[EMAIL PROTECTED]
Ph (09) 372-5010


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