Nope. I'm not so sure that's a good idea as you wouldn't have any way to parse that date on the server (without knowing the right format).
Warning! bad advise ahead: You can always do something crazy like: dojo.widget.byId("dp").setValue = function(dateObj) { }; and then do your thing there, or extend StrusDatePicker widget, which I would strongly advise not to :) musachy On 6/12/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:
I have this code: <s:datetimepicker id="selectedDate" name="selectedDate" displayWeeks="5" displayFormat= "MM-dd-yyyy" value="%{userDetailsBean.selectDateString}"/> It works fine if the user uses the drop-down or types in a date in just the right format. However, we would like the following to work better: user input actual value desired value ---------- ------------ ------------- 06-12-07 NaN-NaN-0NaN 06-12-2007 06/13/2007 06-12-2007 (refused change) 06-13-2007 06 13 2007 06-12-2007 (refused change) 06-13-2007 etc. Basically, I would like to allow multiple date formats in order to make life easier for my users. Can I intercept the user input somehow before it goes to the validation and fix it up? Thanks, Scott ____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "Hey you! Would you help me to carry the stone?" Pink Floyd