Date format in Datagrid

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
 
R

Riki

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top