json.net - ExtJS view model binding not working for date field -


i facing issue date field in extjs. view model data not bind date field correctly. server, if date gets rendered "2010-07-13t01:02:10.000z" binds correctly. if gets rendered "2010-07-13t01:02:10", not bind correctly date field.

is there need bind data date field? cannot post actual code tried creating small sample in both formats not binding correctly. if specify '2010-07-13', binds correctly.

extjs version 6.0.1.250

ext.define('plus.view.mainm', {     extend: 'ext.app.viewmodel',     alias: 'viewmodel.main',     data: {         startdate: '2010-07-13t01:15:20.000z',         name: 'kapil'     } });  ext.define('plus.view.mainv', {     extend: 'ext.form.panel',     xtype: 'app-main',     viewmodel: {         type: 'main'     },     items: [{         xtype: 'textfield',         itemid: 'name',         bind: '{name}',     },     {         xtype: 'datefield',         itemid: 'startdate',         width: 105,         bind: '{startdate}'     }] });  ext.application({     name: 'plus',     extend: 'ext.app.application',     autocreateviewport: 'mainv',     launch: function() {      } }); 

thanks help.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -