Does anyone know how to change the format of dates coming in on a text input being backed by a java.util.Date in the Action? If I enter dates in US format (ex: 3/31/2010 for March 31, 2010) everything is fine. This requires a different style input though, using Day/Month/Year (31/3/2010). I suppose I could take in a string & parse it for a date myself, but I'm wondering if there's a Right way to do it.
--Dan <-- Snip of jsp page --> Date Of Birth* <s:textfield name="dob" required="true" tabindex="4" size="30" cssClass="staticBody" cssErrorClass="formError"/> <-- End snip of jsp page --> <-- Snip of Action --> private Date dob; public Date getDob() { return dob; } @RequiredStringValidator(message="Date of Birth is required.", trim=true) public void setDob(Date dob) { this.dob = dob; } <-- End snip of Action --> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org