I'm actually now thinking that is merely a DateValidator.range problem. If there is a time I don't mind it being shown - it's the DateValidator.range that won't accept it.
The other solution would be to remove the time from the model via the converter below. However, I have not seen a way to do this - it seems that one needs to provide a time format and that's it. How would I ignore the time altogether? Hope this all makes sense... Michael -----Original Message----- From: Jeremy Thomerson [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2008 3:20 PM To: [email protected] Subject: Re: java.util.Date model accepting Date incl. time? It looks like because the DateConverter code uses DateFormat.getDateInstance(DateFormat.SHORT, locale);, if you dig into this method, it uses time style "FULL", which is documented like this: "3:30:42pm PST". Try using that for your date. If that works, than the problem is just that it expects a much longer version of the time. If that's the case, just override the converter for java.util.Date (I know you know how to do this ;) and you could put a new DateConverter, and override this method to return whatever you want. For instance you could do DateFormat.getDateTimeInstance(foo, bar, foo, bar) /** * @param locale * @return Returns the date format. */ public DateFormat getDateFormat(Locale locale) { if (locale == null) { locale = Locale.getDefault(); } return DateFormat.getDateInstance(DateFormat.SHORT, locale); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
