I am trying to change the format of the date to only show the date and not the time in a BoundColumn on a DataGrid but nothing I have tried has worked so far.
<asp:BoundColumn DataField="InvoiceDate" HeaderText="Date" DataFormatString = "{0:MM-dd-yyyy}"/>
I also tried:
DataFormatString="{0:dd-M-yyyy}"
DataFormatString="{0:d}"
DataFormatString="{0:MMM-d-yyy}"