after further reading i've learned that yy means four digit year for dateFormat in jQuery ... so to get a date like 30/09/10 my desired format is
<def tag="input" for="Date"> <hjq-datepicker dateFormat="dd/mm/y" merge/> </def> this allows dates to be correctly generated in both firefox and IE ... so my remaining issues are - sometimes the datepicker popup doesn't appear on IE (actually the autocompleter sometimes fails to appear too...) - i still don't understand why dates appear in on load in edit forms as YYYY-MM-DD On Jul 24, 9:34 am, storitel <[email protected]> wrote: > to be more precise - here's what happens in explorer - you can see the > application.dryml overrides in the background > > http://screencast.com/t/Yzk2MDY0NTIt > > i'm trying to force everything to be dd/mm/yy, but the default edit > form format comes back as yyyy-mm-dd, the datepicker somehow returns > dd/mm/yyyy ... and the result is the contoller sees either the wrong > date (month/day swapped) or an invalid date (in which my defaily fixes > it to today) > > On Jul 24, 9:16 am, storitel <[email protected]> wrote: > > > mostly the datepicker/calendar works fine, but a couple of issues > > meant i couldn't leave it in production (users running iexplorer, > > firefox, Chrome and Safari, in 5 countries so far) > > > - occasionally users managed to create records with blank dates > > - sometimes the calendar popup doesn't appear (in iexplorer only i > > think) > > > maybe there's some configuration missing - i'm trying to force all > > dates to appear as dd/mm/yy, but they keep appearing in forms as yyyy- > > mm-dd and dd/mm/yyyy > > > i've got the following in application.dryml > > > <include src="hobo-jquery" plugin="hobo-jquery" /> > > .. > > <def tag="view" for="Date"><%= this.strftime("%d/%m/%y") %></def> > > <def tag="input" for="Date"><hjq-datepicker dateFormat="dd/mm/yy" > > merge/></def> > > > any thoughts? -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
