Date Format

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

Date Format

Bharamani
Hi ,

 How to format the date?

 for example- Jul 14, 1990

Thanks
Thanks
Bharamani
Reply | Threaded
Open this post in threaded view
|

Re: Date Format

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

Re: Date Format

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

Re: Date Format

mabu
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