2016-01-26 35 views
0

在每一個網格在我的項目(劍道的AngujarJs),其中包含一個DateTime值,我得到這個NaN/NaN/NaN劍道電網DateColumn顯示的NaN/NaN的/ NaN的

這裏是我的架構:

schema: { 
      model: { 
       id: 'RequestId', 
       fields: { 
        RequestId: { type: 'number' }, 
        RequestNumber: { type: 'number'}, 
        FileNumber: { type: 'string' }, 
        RegistrationDate: { type: 'datetime' }, 
        RequestStatus: { type: 'string' }, 
        UnitName: { type: 'string' } 
       } 
      } 
     } 

我試着RegistrationDate: { type: 'string' },RegistrationDate: { type: 'date' },但沒有什麼變化,還我想這對我的columns

{ 
    field: 'RegistrationDate', 
    title: 'Fecha de Registro', 
    type: 'date' 
}, 

或者type: 'datetime'沒事了。

以下是我從服務器獲取:

enter image description here

如何使它工作的任何想法?在網格中顯示Date的非常基本,我知道,在其他項目中我沒有問題,但正如您所看到的,我嘗試了所有我能想到的。

回答

0

試試這個:

{ 
    field: 'RegistrationDate', 
    title: 'Fecha de Registro', 
    format: "{0:yyyy-MM-dd HH:mm:ss}" 
} 
+0

它不工作也不 –