Mar 25, 2011, 5:34 PM
[CLOSED] Wrong Date Format on the store
this.Store.DataSource = ((DataTable)tbl).DefaultView;
where {ColumnDate} have type DateTimeTest 1
JsonReader StoreFields = new JsonReader();
if (recordType == RecordFieldType.Date)
{
StoreFields.Fields.Add(sg.cColumnName, recordType, "yyyy-MM-dd");
}
{View Date in DataBase MSSQL} =>=>=> {View Date in GridPanel with DateColumn.Format = "yyyy-MM-dd";}"2011-03-31 00:00:00.000" =>=>=> "2011-03-31"
"2011-04-12 00:00:00.000" =>=>=> "2011-04-12"
"2011-06-23 09:24:00.000" =>=>=> "" // undefined
Test 2
JsonReader StoreFields = new JsonReader();
if (recordType == RecordFieldType.Date)
{
StoreFields.Fields.Add(sg.cColumnName, recordType, "yyyy-MM-dd HH:mm");
}
{View Date in DataBase MSSQL} =>=>=> {View Date in GridPanel with DateColumn.Format = "yyyy-MM-dd";}"2011-03-31 00:00:00.000" =>=>=> "" // undefined
"2011-04-12 00:00:00.000" =>=>=> "" // undefined
"2011-06-23 09:24:00.000" =>=>=> "2011-06-23"
Test 3
JsonReader StoreFields = new JsonReader();
if (recordType == RecordFieldType.Date)
{
StoreFields.Fields.Add(sg.cColumnName, recordType, "yyyy-MM-dd HH:mm:ss");
}
{View Date in DataBase MSSQL} =>=>=> {View Date in GridPanel with DateColumn.Format = "yyyy-MM-dd";}"2011-03-31 00:00:00.000" =>=>=> "" // undefined
"2011-04-12 00:00:00.000" =>=>=> "" // undefined
"2011-06-23 09:24:00.000" =>=>=> "" // undefined
Test 4
JsonReader StoreFields = new JsonReader();
if (recordType == RecordFieldType.Date)
{
StoreFields.Fields.Add(sg.cColumnName, recordType);
}
{View Date in DataBase MSSQL} =>=>=> {View Date in GridPanel with DateColumn.Format = "yyyy-MM-dd";}"2011-03-31 00:00:00.000" =>=>=> "" // undefined
"2011-04-12 00:00:00.000" =>=>=> "" // undefined
"2011-06-23 09:24:00.000" =>=>=> "" // undefined
What is this????
Last edited by Daniil; Mar 25, 2011 at 10:01 PM.
Reason: [CLOSED]