I want to format Date of the GridView Cell text like
ddMMMYYYY
(i.e)
07MAY2010
how to achieve this?
RowDataBound()
{
....
e.Row.Cells[10].Text = ......?
}
I want to format Date of the GridView Cell text like
ddMMMYYYY
(i.e)
07MAY2010
how to achieve this?
RowDataBound()
{
....
e.Row.Cells[10].Text = ......?
}
Do foramte string as shown below do work for you
e.Row.Cells[10].Text =String.Format("{0:dd/MMM/yyyy}", dt);
with out /
e.Row.Cells[10].Text =String.Format("{0:ddMMMyyyy}", dt)
More : String Format for DateTime