Sorry, I don't know much about Date[Time]Field. Just trying to save you a few LoC.
jk On Wed, Jul 08, 2009 at 01:35:13PM -0700, Fernando Wermus wrote: > thanks for the tip. Is there some way to solve what I commented? > > On Wed, Jul 8, 2009 at 1:25 PM, John Krasnay <j...@krasnay.ca> wrote: > > > On Wed, Jul 08, 2009 at 01:16:19PM -0700, Fernando Wermus wrote: > > > Date minDate = new DateTime().plusDays(1).toDate(); > > > SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy"); > > > widgetProperties.put("mindate", format.format(minDate)); > > > > FYI with Joda Time this can be reduced to this... > > > > widgetProperties.put("mindate", > > new DateTime().plusDays(1).toString("MM/dd/yyyy")); > > > > jk > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > -- > Fernando Wermus. > > www.linkedin.com/in/fernandowermus --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org