0

The incoming date format is as follows;2019-10-02T10:17:52.13, 2019-10-30T13:57:16.35 etc.

<kendo-grid-column
  field="CreatedTime"
  title="Date"
  filter="date"
  format="{0:dd/MM/yyyy HH:mm}">
</kendo-grid-column>

I couldn't format the date. How can I do? Thank you

GBouffard
  • 1,125
  • 4
  • 11
  • 24
unalavci
  • 27
  • 6
  • Ho, the issue is that the parameter name are not nice enought . Thats a plain sql query. This is the real Sql query. And yes, it doesn't use the variable name as parameter names. But your question is not pointing in that direction you should [edit]. To ask why is auto generated or how to use custom variable name. you will get an answer on why it's impossible and how generated name make sure that 2 query with different variable name still get the same execution plan. – xdtTransform Nov 15 '19 at 13:33

2 Answers2

0

Try as below:

<kendo-grid-column
  field="CreatedTime"
  title="Date"
  filter="date"
  format="dd.MM.yyyy">
</kendo-grid-column>
Muhammad Aftab
  • 1,098
  • 8
  • 19
0

As Telerik docs says:

The format that is applied to the value before it is displayed. Takes the {0:format} form where format is a standard number format, a custom number format, a standard date format, a custom date format or a format object. For more information on the supported date and number formats, refer to the kendo-intl documentation.

<kendo-grid>
   <kendo-grid-column field="FirstOrderedOn" [format]="{ date: 'short' }">
   </kendo-grid-column>
</kendo-grid>
StepUp
  • 36,391
  • 15
  • 88
  • 148