W
Wayne Wengert
I have an aspx page in which I retrieve data from an SQL Server. At one
point I am retrieving a smalldatetime field and I want to display only
"mm/dd/yy" but the default seems to be to add the time. The code to retrieve
that date field is: <%#Container.DataItem("LastUpdated")%>
I tried adding ".ToString("d")" but it doesn't recognize that as a
formatting function.
How can I format that returned value as mm/dd/yyyy?
Wayne
point I am retrieving a smalldatetime field and I want to display only
"mm/dd/yy" but the default seems to be to add the time. The code to retrieve
that date field is: <%#Container.DataItem("LastUpdated")%>
I tried adding ".ToString("d")" but it doesn't recognize that as a
formatting function.
How can I format that returned value as mm/dd/yyyy?
Wayne