re: Input date format question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

re: Input date format question

richhl
>properties.xml
>oxf.xforms.format.input.date = [M]/[D]/[Y]
>
>Is this something that can easily be changed or overcome
>(i.e. by using  a different calendar or some clever js
>hack)?

This works 4 me:

                   <xforms:input bind="rule_fecha_cuestionario"
xxforms:format="if (. != '') then format-date(xs:date(.),
'[D]/[M]/[Y]', 'en', (), ()) else ." id="fecha"
class="resultado">
                                <xforms:label class="campos-ejercicio">Fecha:  
</xforms:label>
                        </xforms:input>
greetings,

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
Reply | Threaded
Open this post in threaded view
|

Re: re: Input date format question

Chris Bailey-2
Thanks for the reply rich,

However unfortunately that trick doesn't work for me in 3.7.0beta1

See the attached file in the sandbox.

Chris.

[hidden email] wrote:

>> properties.xml
>> oxf.xforms.format.input.date = [M]/[D]/[Y]
>>
>> Is this something that can easily be changed or overcome
>> (i.e. by using  a different calendar or some clever js
>> hack)?
>
> This works 4 me:
>
>   <xforms:input bind="rule_fecha_cuestionario"
> xxforms:format="if (. != '') then format-date(xs:date(.),
> '[D]/[M]/[Y]', 'en', (), ()) else ." id="fecha"
> class="resultado">
> <xforms:label class="campos-ejercicio">Fecha:  
> </xforms:label>
> </xforms:input>
> greetings,
>
> rich
>
--
Chris Bailey
Senior Technical Researcher
Institute for Learning and Research Technology
University of Bristol
[hidden email]


--
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

datepicker.xhtml (1K) Download Attachment