PDA

View Full Version : Date.parseDate() produces error



jumpow
29 Jul 2013, 10:01 PM
Example from page
http://docs.sencha.com/touch/1.1.1/#!/api/Date-static-property-parseFunctions:


dt = Date.parseDate (http://docs.sencha.com/touch/1.1.1/#!/api/Date-static-method-parseDate)("2006-02-29 03:20:01", "Y-m-d H:i: s", true);produces error
"TypeError: Date.parseDate is not a function"

Why?


Test source:
---------------------------------------------------------

<html> <head> <link rel='stylesheet' type='text/css' href='extjs/resources/css/ext-all.css (http://www.sencha.com/forum/view-source:http://127.0.0.1:8080/AlfaExtJS/extjs/resources/css/ext-all.css)'> <script type='text/javascript' src='extjs/ext-all-debug.js (http://www.sencha.com/forum/view-source:http://127.0.0.1:8080/AlfaExtJS/extjs/ext-all-debug.js)'></script> <script type="text/javascript"> Ext.application( { name: 'Statistic', launch: function() { Ext.BLANK_IMAGE_URL='extjs/resources/s.gif'; dt = Date.parseDate("2006-02-29 03:20:01", "Y-m-d H:i: s", true); } }); </script> </head> <body> </body> </html>

jumpow
29 Jul 2013, 10:14 PM
Solved
Sorry, it must be Ext.Date