Hi,
I want to change format of datefield in my gridview. Below is my code.
grid.Column("CreationDate", "Creation Date", item.CreationDate)),Please give me some solution to accomplish my task.
home / developersection / forums / change date format in gridview
Hi,
I want to change format of datefield in my gridview. Below is my code.
grid.Column("CreationDate", "Creation Date", item.CreationDate)),Please give me some solution to accomplish my task.
Hemant Patel
14-Dec-2017Hi Sara,
I analyzed your code. Please follow below line of code to achieve your task.
grid.Column("CreationDate", "Creation Date", format: (item) => string.Format("{0:dd-MM-yyyy}", item.CreationDate)),Hope its informative......