Hi,

> -----Ursprüngliche Nachricht-----
> Von: MartinWittemann [mailto:[email protected]]

> it's much easier than you thought. The DateField uses a location
> dependent
> formater to convert the given Date to the string you see in the
> textfield.
> So why don we just use the same approach with your problem:
> 
> dateField.getDateFormat().format(dateField.getValue());

Or even create a date string in your prefered format independet of the display.

var df = new qx.util.format.DateFormat("yyyy'-'MM'-'dd", "de");
var myDateString = df.format(e.getData());

Variable e is the "changeValue" event from the DateField. The events data is a 
Date object as you can see in Martins example.

Cheers, Frank


-------------------------------------------------------

Fachinformationszentrum Karlsruhe, Gesellschaft für wissenschaftlich-technische 
Information mbH. 
Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim HRB 
101892. 
Geschäftsführerin: Sabine Brünger-Weilandt. 
Vorsitzender des Aufsichtsrats: MinR Hermann Riehl.



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to