For more info:

writing to the child control of the DateField is fine,
but you have to make sure the input string format matches the DateFormat.

so i recommend to use "setValue" of DateField, with native Date object
and let the DateField widget to take care the display itself.

Hope this helps.



Peter Caffin wrote
> Ah. Nevermind, I've sussed out the answer :)
> 
> T3205.getChildControl("textfield").setValue("1996-11-24");
> 
> On 6/09/2015 7:10 am, Peter Caffin wrote:
>> Hi guys,
>>
>> My code:
>>
>> var T3205 = new qx.ui.form.DateField();
>> var dateFMT = new qx.util.format.DateFormat("YYYY-MM-dd");
>> T3205.setDateFormat(dateFMT);
>>
>> How do I set that date to "1996-11-24" (November 11, 1996)?
>>
>> I've tried:
>>
>> T3205.setValue("1996-11-24");
>>
>> The examples in the documentation use "new Date()" but don't show how
>> you should set a specific date.
>>
>> Thanks.
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list

> qooxdoo-devel@.sourceforge

> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel





--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Setting-an-arbitrary-date-in-Datefield-tp7587535p7587537.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to