G Guest May 25, 2004 #3 there is property in datagrid where we select the date format with out the timefield
G Guest May 25, 2004 #4 Fairly simple Just add DataFormatString in your column template, like <asp:BoundColumn DataField="MyDateTime" HeaderText="My Date" DataFormatString="{0:MM/dd/yyyy}"></asp:BoundColumn For standard datetime formatingstring , see http://msdn.microsoft.com/library/d...de/html/cpconstandarddatetimeformatstrings.as For custom datetime formating string, see http://msdn.microsoft.com/library/d...uide/html/cpconcustomdatetimeformatstrings.as Bin Song, MCP
Fairly simple Just add DataFormatString in your column template, like <asp:BoundColumn DataField="MyDateTime" HeaderText="My Date" DataFormatString="{0:MM/dd/yyyy}"></asp:BoundColumn For standard datetime formatingstring , see http://msdn.microsoft.com/library/d...de/html/cpconstandarddatetimeformatstrings.as For custom datetime formating string, see http://msdn.microsoft.com/library/d...uide/html/cpconcustomdatetimeformatstrings.as Bin Song, MCP