0

我有一个带有日期时间列的剑道网格。该列的格式仅显示时间。

 columns.Bound(p => p.Brief).Format("{0:HH:mm}").EditorTemplateName("BriefTimePicker").Width(100);

正在加载到列中的数据来自数据库,时间值为 6:00,但当它显示在网格中时为 1:00。有什么方法可以防止它转换为格林威治时间吗?

4

1 回答 1

0

尝试这个

columns.Bound(c => c.Brief).ClientTemplate("#= kendo.toString(Brief,'d') #")..EditorTemplateName("BriefTimePicker").Width(100);

此链接上提供的日期格式。

http://docs.telerik.com/kendo-ui/getting-started/framework/globalization/dateformatting

问候

沙兹

于 2014-02-25T15:42:33.333 回答