Hi,

When I have a date value in a control, the calendar picker pops up and lets me select a date. However, this is in the format 'MM/dd/YYYY', i.e. American format. I've tried putting xml:lang="en" into various places, but this doesn't affect the outcome. Is there a special place to put xml:lang I have missed, or is this not how you control the format of selected dates?

As well as switching day and month, I would really like to output the dates that the user selects in the format we recommend to our users: 'dd.mm.YYYY'. I've tried writing a <setvalue> command, but to no avail:

            <action ev:event="xforms-ready">
                  <setvalue ref="ProcedureTemplate/Object/Movement/DateRequested" value="concat(substring-before(substring-after(., '/'), '/'), '.', substring-before(., '/'), '.', substring-after(substring-after(., '/'), '/'))"/>
               </action>
Is this approach doomed to failure, or have I just made a minor coding error?

Thanks,

Richard

--
------------------------------------------------------------------------
*Richard Light*
[email protected]
/@richardofsussex/
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to