Environment:
Visual Studio 2022
SQL Server 2019
ASP.NET .Net 4.8
I have a database query that returns a hire date that is type DateOnly
type in SQL Server. In my ASP.NET application it gets stored in a DataSet
. When I bind it to a GridView
(in which I'm using the AutoGenerateColumns
feature).
<asp:GridView ID="GridView1" runat="server"></asp:GridView>
Is there a way in CSS to remove the time part from the date? Or can I remove it from DataSet somehow?