[Xsltforms-support] Date formatting
Brought to you by:
alain-couthures
From: Richard L. <ric...@gm...> - 2023-09-29 14:27:13
|
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* ric...@gm... /@richardofsussex/ |