Telerik Mvc Grid Date Format



Telerik mvc grid inline edit mode” finally I got a solution by which we can change the date format while using Telerik mvc grid inline edit mode. Here is the simple code. Format Cells during Export to Excel. To format the cell values during the export of the Grid to Excel, set the format option of the cells. The page on how to create a custom number format describes the formats supported by Excel. To see the example, refer to the project on how to format the cells during the export of the Grid to Excel.

Hello,

I am using Visual Studio2103, mvc5, entity framework 6, and telerik kendo ui pro q2 2015

Everything looked ok when I deployed to staging IIS, and run in debug mode . But when I deploy to production IIS, the datetime appears as UTC instead of local time.

For example, sql data is 8/10/2015 1:30am , which i see on staging. But on production, I see 8/9/2015 6:30pm.

Teleric has article below, which seems like a lot of work to just convert to local time , but i wonder if there is a simpler way to show the localtime ?

Telerik mvc grid demo

Here is my grid formatter :

<div>Copy code</div> <div> <div>columns.Bound(p => p.DateTime).Title('Start Time').ClientTemplate('#= kendo.toString(kendo.parseDate(DateTime), 'MM/dd/yyyy 0:hh:mm tt') #');</div> <div>FormatsTelerik Mvc Grid Date Formatcolumns.Bound(p => p.DateTimeEnd).Title('End Time').ClientTemplate('#= kendo.toString(kendo.parseDate(DateTimeEnd),'MM/dd/yyyy 0:hh:mm tt') #');</div> <div></div> <div></div> <div>

Telerik Mvc Grid Date Format

Thanks,Peter

Telerik Mvc Grid Detail Template

Telerik Mvc Grid Date Format

Telerik Mvc Grid

</div> </div>