On 04/17/2012 03:51 PM, Christopher Zündorf wrote:
I think it is more a JavaScript issue.

Not quite. Steven Levithan's article covers the possibilities his own dateformat class that patches the built-in Date (e.g. with a format() method). So his implementation can hardly be a reference for general date formatting.

The native Date class can take a date/time string as argument to the constructor or the .parse() method. But this has to be a literal string not containing any format keys (and the format of that string is left open by the ECMA spec).

qooxdoo's qx.util.format.DateFormat aims to support specific set of format specifiers (namely that of the Unicode standard), see [1].

T.

[1] http://demo.qooxdoo.org/1.6.x/apiviewer/#qx.util.format.DateFormat


Have a quick look on :
http://blog.stevenlevithan.com/archives/date-time-format

There ,you will find a table with all formatting variables available.

HTH
Christopher



Am 17.04.2012 um 15:46 schrieb Jagget:

Sorry, wrong copy. From DateField i get: Wed Apr 18 2012 00:00:00 GMT+0400 (MSK)

But in DateField's label i see text "2012/04/18 12:00"
----
С уважением,
Jagget


On 17 April 2012 17:44, Jagget <[email protected] <mailto:[email protected]>> wrote:

    If use hh instead HH, I get
    /DateChooser: Wed Apr 18 2012 12:00:00 GMT+0400 (MSK)/
    /DateField: Wed Apr 18 2012 12:00:00 GMT+0400 (MSK)/
    /
    /
    ----
    С уважением,
    Jagget



    On 17 April 2012 17:34, Christopher Zündorf
    <[email protected]
    <mailto:[email protected]>> wrote:

        Try this:

        df.setDateFormat(new qx.util.format.DateFormat('yyyy/MM/dd
        hh:mm'));

        Use "hh" instead of "HH" in formatting template.

        HTH
        Christopher



        Am 17.04.2012 um 15:20 schrieb Jagget:

        And if I set DateFormat in DateField like that
        df.setDateFormat(new qx.util.format.DateFormat('yyyy/MM/dd
        HH:mm')); (see http://tinyurl.com/csqjoyc)
        I recieved
        *"Tue Apr 17 2012 12:00:00 GMT+0400 (MSK)"*
        Why noon? I need midnight!
        How can I get it?
        ----
        С уважением,
        Jagget


        On 17 April 2012 16:02, Jagget <[email protected]
        <mailto:[email protected]>> wrote:

            Just a one question. In sample below

            var button1 = new qx.ui.form.Button("Show choosen");
            var dc = new qx.ui.control.DateChooser();
            var df = new qx.ui.form.DateField();

            var doc = this.getRoot();
            doc.add(button1,{left:100,top:50});
            doc.add(dc,{left:100,top:100});
            doc.add(df,{left:100,top:300});

            button1.addListener("execute", function(e) {
            var t = 'DateChooser: ' + dc.getValue().toString() +
            '\nDateField: ' + df.getValue().toString();
            alert(t);}); (The same in PlayGround
            http://tinyurl.com/7mup35u)

            Alert give text like
            *
            DateChooser: Tue Apr 17 2012 12:00:00 GMT+0400 (MSK)
            DateField: Tue Apr 17 2012 00:00:00 GMT+0400 (MSK)
            *

            *12:00 *and *00:00*
            *
            *
            *Why? *How can I recieve from DateChooser "Tue Apr 17
            2012 00:00:00 GMT+0400 (MSK)"?

            ----
            С уважением,
            Jagget


        
------------------------------------------------------------------------------
        Better than sec? Nothing is better than sec when it comes to
        monitoring Big Data applications. Try Boundary one-second
        resolution app monitoring today. Free.
        
http://p.sf.net/sfu/Boundary-dev2dev_______________________________________________
        qooxdoo-devel mailing list
        [email protected]
        <mailto:[email protected]>
        https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


        
------------------------------------------------------------------------------
        Better than sec? Nothing is better than sec when it comes to
        monitoring Big Data applications. Try Boundary one-second
        resolution app monitoring today. Free.
        http://p.sf.net/sfu/Boundary-dev2dev
        _______________________________________________
        qooxdoo-devel mailing list
        [email protected]
        <mailto:[email protected]>
        https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev


_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to