I am having trouble formatting a date column.
<pre><asp:GridView ID="mixdesignGridView" runat="server" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4" DataKeyNames="JobName"
DataSourceID="materialsAccessDataSource"
EmptyDataText="There are no data records to display."
ForeColor="#333333" GridLines="None">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:BoundField DataField="JobNumber" HeaderText="JobNumber"
ReadOnly="True" SortExpression="JobNumber" />
<asp:BoundField DataField="JobName" HeaderText="JobName"
ReadOnly="True" SortExpression="JobName" />
<asp:BoundField DataField="Location" HeaderText="Location"
ReadOnly="True" SortExpression="Location" />
<asp:BoundField DataField="SubgrdDate" HeaderText="SubgrdDate"
ReadOnly="True" SortExpression="SubgrdDate"
<font color=red>DataFormatString="{0:d}"</font color=red> />
<asp:CheckBoxField DataField="MDsent" HeaderText="MDsent"
SortExpression="MDsent" />
<asp:CheckBoxField DataField="MDrcvd" HeaderText="MDrcvd"
SortExpression="MDrcvd" />
<asp:BoundField DataField="MD_Out" HeaderText="MD_Out"
ReadOnly="True" SortExpression="MD_Out" />
<asp:BoundField DataField="JobPM" HeaderText="JobPM"
ReadOnly="True" SortExpression="JobPM" />
<asp:BoundField DataField="MDnotes" HeaderText="MDnotes"
SortExpression="MDnotes" />
</Columns>
<RowStyle BackColor="#cccccc" />
<EditRowStyle BackColor="#7C6F57" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True"
ForeColor="#333333" />
<PagerStyle BackColor="#666666" ForeColor="White"
HorizontalAlign="Center" />
<HeaderStyle BackColor="#000000" Font-Bold="True"
ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</pre>
Can someone tell me why the <font color=red>DataFormatString</font color=red> is not formatting my date field properly? The current format looks like this:
<span style="background-color: #FFFF00; color: #000000; font-weight: bold">12/11/2006 12:00 AM</span hi>
I only want to see the date portion.
thanks,
jackal



