Orbeon Forms community mailing list
Search
everywhere
only in this topic
Advanced Search
Date Format
Classic
List
Threaded
♦
♦
Locked
4 messages
Bharamani
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Date Format
Hi ,
How to format the date?
for example- Jul 14, 1990
Thanks
Thanks
Bharamani
mabu
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Date Format
Hi,
You can use the format-date function defined in
https://www.w3.org/TR/xslt20/#function-format-date
.
For Example: format-date(current-date(), '[MNn] [D01], [Y0001]', 'en', (), ())
Martin
Bharamani
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Date Format
Hi Martin
is it possible to get that date format in form runner?
I mean in xhtml we have to right any script??
thanks
Thanks
Bharamani
mabu
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Date Format
Hi,
you can change the default date format by overriding the property "oxf.xforms.format.input.date" (
https://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/config/properties-xforms.xml#L91
).
Martin
Free forum by Nabble
Edit this page