take a look at the DateTextField#forDatePattern(...) methods hth, gerolf
On 7/28/07, Mark van Leeuwen <[EMAIL PROTECTED]> wrote: > > Hi all, > > How can I set the date format with the DateTimeField? Looking at the code, > the format appears to be set in DateTimeField.init() with the line: > > add(dateField = DateTextField.forShortStyle("date", new > PropertyModel(this, > "date"))); > > and there seems no simple way to override this behaviour. It defaults to > MM/dd/yyyy whereas I want yyyy/MM/dd. > > Thanks in advance > Mark > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > IMPORTANT NOTICE: > > This mailing list is shutting down. Please subscribe to the Apache Wicket > user list. Send a message to: "users-subscribe at wicket.apache.org" and > follow the instructions. > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions. _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user