0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ext JS モデルで ASP.NET の日付型を扱う

Posted at

ASP.NET から出てくる形式は 2015-07-02T10:10:00 という形式ですが、
そのままにしておくと、Sencha 側がなぜか +GMT を足してくれます。
しかし、

Ext.define('SomeModel', {
    fields: [{
        name: 'birthday',
        type: 'date',
        dateFormat: 'Y-m-d\\TH:i:s'
    }]
        :
        :
});

のように指定すると現象を回避できます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?