Hi Stevan,

This is not Qooxdoo related proposal but if you have the date as a sting in
one format and want just to convert it to another format can't you just do:

var date = "Tue Feb 09 2010 00:00:00 GMT+0100";
var m=[];

m["Jan"]="01";m["Feb"]="02";m["Mar"]="03";m["Apr"]="04";m["May"]="05";m["Jun"]="06";
m["Jul"]="07";m["Aug"]="08";m["Sep"]="09";m["Oct"]="10";m["Nov"]="11";m["Dec"]="12";

f = date.match(/^\w+ (\w+) (\d+) (\d+)/);

var newdate = f[3] + "/" + m[f[1]] + "/" + f[2];

alert(newdate);

Or similar.

              -ilkka

On Tue, Feb 9, 2010 at 7:13 PM, Stefan Volbers <[email protected]> wrote:

> Hi there,
>
> since the form api changed in qooxdoo 1.0, there seems to be no
> (documented) way to read the value which is entered into the DateField's
> input widget.
>
> Actually I need to transmit the literal value displayed in the DateField
> to the database backend ("2010/02/09"), not the javascript date object
> string ("Tue Feb 09 2010 00:00:00 GMT+0100"). This breaks on the qooxdoo
> 1.0 migration. Plus, I export a data report into a pdf, parameters are
> coded into GET parameters; this breaks, too, and forces me to handle
> different data consumers. Way too much hassle, so I'd prefer to stay
> with the classic date representation.
>
> This thing cost me nearly the entire last night (trying to fix the pdf
> report class, ultimately finding that the solution breaks in IE7...).
>
> No idea if DateField's getContentElement() method would the way to go,
> and I'm sick of trial-and-error for today, so I'd really appreciate any
> clue...
>
> Greetings,
> Stefan
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
http://iki.fi/iao/
+358 50 486 0721
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to