Home All Groups Group Topic Archive Search About

Gridview formatting

Author
11 Aug 2006 6:21 PM
Arne Garvander
What is wrong with my dateformat?
<asp:BoundField DataField="BatchDate" DataFormatString="{0:MM/dd/yyyy}" 
HeaderText="Batch Date" />
My datatype is datetime
i.e.
I was expecting 01/01/2006
but I get 01/01/2006 12:00:00 am.

--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)

AddThis Social Bookmark Button