Home All Groups Group Topic Archive Search About
Author
4 Oct 2006 10:01 PM
Nico VanHaaster
Hey guys,

This should be really simple however i just can't figure it out. I am
using a GridView to display hours results from a database. Now the date
field in the database is formated as a short date (Access) mm/dd/yyyy
however when ever it is displayed back on the page it is displayed as
MM/dd/yyyy hh:mm:ss

Now this is my code for the boundfield. Any Quick Pointers?
<asp:BoundField DataField="Date" DataFormatString="{0:MM/dd/yyyy}"
HeaderText="Date"
                    SortExpression="Date">
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:BoundField>

Thanks In Advance

Nico

Author
4 Oct 2006 11:11 PM
ReyN
Author
5 Oct 2006 7:28 PM
Nico VanHaaster
Of course..

Thanks for Noticing that.

Cheers Nico