In such cases, we can use the Column template feature of the grid to display the TimeSpan values in desired format.
For example we can use the following Jsrender custom converter to format the timespan value.
In the following code snippets, we have demonstrated, how to use the column template to display the timespan value in grid.
The grid data has been returned from the below function.
The output will be as follows.
Figure 1: Grid with Timespan column without using template - see highlighted column
Figure 2: Grid with Timespan column using template - see highlighted column
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|4106||02/20/2015||08/06/2015||ASP.NET Web Forms||Grid|
or the page will be automatically redirected to sign-in page in 10 seconds.