I have a web application that I am working on(ASP.NET 2.0 & C#). In it, I have a gridview that gets data from an Oracle Database. Some of the data that I need to display is dates. But when the dates in my gridview show like this:
2009-04-02 00:00:00
I'd prefer they show without the time. I'm using the codebehind to get the data, so I cant alter the fields of the gridview manually. This is all the code for my gridview :
<asp:GridView ID="Grid" runat="server" EmptyDataText="There are no data records to display." ></asp:GridView>
How do I stop the time from displaying?