Hi,
You can use it like this:
var dateFormat = new qx.util.format.DateFormat('isoUtcDateTime');
var formatedDate = dateFormat.format(new Date('2004-02-12T15:19:21+00:00'));
http://demo.qooxdoo.org/devel/playground/#%7B%22code%22%3A%22var%2520dateFormat%2520%253D%2520new%2520qx.util.format.DateFormat('isoUtcDateTime')%253B%250D%250Avar%2520formatedDate%2520%253D%2520dateFormat.format(new%2520Date('2004-02-12T15%253A19%253A21%252B00%253A00'))%253B%250D%250A%250D%250Aalert(formatedDate)%253B%22%2C%20%22mode%22%3A%22ria%22%7D
Cheers Tobias
-----Ursprüngliche Nachricht-----
Von: chrisch [mailto:[email protected]]
Gesendet: Sonntag, 12. Oktober 2014 14:24
An: [email protected]
Betreff: [qooxdoo-devel] qx.util.format.DateFormat
I'm trying to parse a date with qx.util.format.DateFormat and I'm wondering
about the correct format to use.
The date comes from a php backend via JSON and is formatted according to ISO
8601, for example 2004-02-12T15:19:21+00:00
I have tried 'isoUtcDateTime' as format but it doesn't work. Is there a way to
parse the date in the given format? Can anybody give me a hint for the correct
format string?
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/qx-util-format-DateFormat-tp7586264.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS
3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready
for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0
Requirement 10 and 11.5 with EventLog Analyzer http://p.sf.net/sfu/Zoho
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel