Login  Register

Re: Date formatting in Orbeon 3.7.1.

Posted by Erik Bruchez-3 on Oct 31, 2009; 1:15am
URL: https://discuss.orbeon.com/Date-formatting-in-Orbeon-3-7-1-tp278175p304353.html

Emil,

When an input control is bound to a type xs:date or xforms:date, this
is currently not possible: we format the date as you mention below.

You could still do this by NOT using the xs:date or xforms:date type,
and instead using a plain string, and validate with
xforms:bind/@constraint.

Better yet would be to support YYYY-MM-DD input. To do this, some
changes to both the JavaScript code and the Java code is necessary. It
wouldn't be too hard to do though. If you feel like trying, please let
us know and we can guide you!

-Erik

On Fri, Oct 30, 2009 at 4:32 AM, Emil <[hidden email]> wrote:

>
> Hi everybody,
>
> I'm writing, because I have a problem with a date formatting in my Orbeon
> 3.7.1. I must have the following format in a date control: YYYY-MM-DD.
> Unfortunately, there are only 3 types of formatting available now
> ([M]/[D]/[Y]  or [D]/[M]/[Y] or [D].[M].[Y]). It wasn't an issue in Orbeon
> 3.6, because a date control was rendered as an OUTPUT with a calendar (not
> as an INPUT with a calendar) and more formats were available. My question
> is: can I change a date input format to YYYY-MM-DD, or can I change a
> rendering policy, so a date control is rendered as an output not an input
> (it's fine for me)?
>
> Thanks in advance,
>
> Emil
> --
> View this message in context: http://n4.nabble.com/Date-formatting-in-Orbeon-3-7-1-tp278175p278175.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
>
> --
> 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
>
>


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