Hi Gene,
On Wednesday 22 July 2009 Gene Amtower wrote:
> I think Martin also wanted to know how to get the text name of the month
> to show in German, as well as changing the actual date format. I'm
> assuming that's managed by the language component in Qooxdoo, but I've
> never had to use it. Can someone also explain to Martin how to get the
> months to show in a different language?
Sorry for not reading the mail carefully enough.
You're right, this is done by the language component in qooxdoo. The class to
use is "qx.locale.Date". It offers several methods to get localized names and
"getMonthName" is one among them.
Just take a look at the API docs to get a full overview
http://demo.qooxdoo.org/current/apiviewer/#qx.locale.Date
cheers,
Alex
> On Wed, 2009-07-22 at 17:05 +0200, Alexander Back wrote:
> > Hi Martin,
> >
> > On Wednesday 22 July 2009 Martin_GER wrote:
> > > what is the easiest way to change the format and language by datefield.
> > > I (german) need the "dd.mm.YYYY" format and the month in german
> > > language.
> >
> > The easiest way is to use the "dateFormat" property of the "DateField"
> > widget.
> >
> > --snip--
> > var dateField = new qx.ui.form.DateField();
> > dateField.setDateFormat(new qx.util.format.DateFormat("dd.mm.YYYY"));
> > --snip--
> >
> > Hope this helps you further.
> >
> > cheers,
> > Alex
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel