0
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?

enter image description here

Rod
  • 14,529
  • 31
  • 118
  • 230
  • 1
    See : https://stackoverflow.com/questions/10681378/how-to-change-the-format-of-a-column-in-gridview-from-c-sharp – jdweng Sep 29 '22 at 05:39

0 Answers0