Date format in Datagrid

  • Thread starter Thread starter vineethash
  • Start date Start date
V

vineethash

I am reading in results from an SQL database one of the fields is a
date
value. I wish to be able to display the date as only "dd/mm/yyyy" in
datagird (.net)can some
body give me an example. now it showing with Date and Time
 
I am reading in results from an SQL database one of the fields is a
date
value. I wish to be able to display the date as only "dd/mm/yyyy" in
datagird (.net)can some
body give me an example. now it showing with Date and Time

<asp:BoundColumn DataField="myDate" HeaderText="myHeader"
DataFormatString="{0:dd/MM/yyyy}" ></asp:BoundColumn>

Riki
 
Back
Top