I'm using SQL Server 2005 Express and Visual Web Developer Express (ASP.NET 2.0). I've
created an ASPX page which displays policy information. The date, which has a
"datetime" property, displays with both date and time. I want only a short
date. I'm not familiar with the SQL language yet.
In the ASPX page I wrote
to format it. But the time portion is still there. I read something about
DATEPART, but it was too confusing to know if it was something I should be
using. Help!
Dawn
created an ASPX page which displays policy information. The date, which has a
"datetime" property, displays with both date and time. I want only a short
date. I'm not familiar with the SQL language yet.
In the ASPX page I wrote
Code:
<asp:BoundField DataField="LastUpdated" HeaderText="Date Last Updated"
SortExpression="LastUpdated" DataFormatString="{0:d}">
to format it. But the time portion is still there. I read something about
DATEPART, but it was too confusing to know if it was something I should be
using. Help!
Dawn