I am trying to get the calendar to output in the D/M/Y format for my date fields (eg 30/5/2009). I've updated the oxf.xforms.format.input.date accordingly however that only formats the date when an existing form is loaded or a default date is specified for a new form submission. When I click on the calendar icon (either using jscalendar or yui), the date selected in the calendar is actually July 5, 2011 (looks like it's adding 30 months to January of the specified year). And when I select a new date from the calendar, it populates the date field in the D/M/Y format. How can I get the calendar to output in the D/M/Y format and to recognize that format when updating a date?
|
On Sat, 30 May 2009 15:08:32 -0700 (PDT)
dshtulman <[hidden email]> wrote: > > I am trying to get the calendar to output in the D/M/Y format for my date > fields (eg 30/5/2009). I've updated the oxf.xforms.format.input.date > accordingly however that only formats the date when an existing form is > loaded or a default date is specified for a new form submission. When I > click on the calendar icon (either using jscalendar or yui), the date > selected in the calendar is actually July 5, 2011 (looks like it's adding 30 > months to January of the specified year). And when I select a new date from > the calendar, it populates the date field in the D/M/Y format. How can I > get the calendar to output in the D/M/Y format and to recognize that format > when updating a date? > -- > View this message in context: http://www.nabble.com/Date-formatting-with-calendar-tp23797823p23797823.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. > greetings, rich References: http://www.nabble.com/DD-MM-YYY-format-for-imput-td20973849.html#a20973849 http://www.nabble.com/patch_for_dd_mm_yy_format-p20721115.html -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Richard,
I double checked, and the code is in. I also did a quick test adding <property as="xs:string" name="oxf.xforms.format.input.date" value="[D]/[M]/[Y]"/> to my properties-local.xml and the date controls are working fine in the controls example (http://localhost:8080/orbeon/xforms-controls/). This was checked in on May 18, 2009. Are you using a nightly build after this date, or 3.7.1? Alex |
> This was checked in on May 18, 2009. Are you using a nightly build after
> this date, or 3.7.1? 3.7.1, do you recommend an specially stable nightly build after May 18, 2009? thx a lot. rich -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Richard,
This code should definitely be in 3.7.1. Could you attach to your response an example that shows the problem, with some instructions on how to reproduce this? I must be really testing something different, as this is working quite well for me here. Alex |
Free forum by Nabble | Edit this page |