Skip to content

Replies

0
sanjay bhardwaj
sanjay bhardwaj answered on Jun 5, 2015 6:25 AM

Hello Infragisticians,

I have had also experienced with this date issue(EnableUTCDates) and after going with this thread i've applied below settings which could be helpful of all infragisticians,

gridModel.EnableUTCDates = true;

column.For(x => x.columnDate).HeaderText("Date").Format("dd/MM/yyyy").DataType("date");

Code-Behind:

columnDate = new DateTime(dbDate.Value.Year, dbDate.Value.Month, dbDate.Value.Day, dbDate.Value.Hour, dbDateDate.Value.Minute, dbDate.Value.Second, dbDate.Value.Millisecond, DateTimeKind.Utc);

Best Regards,