D
David C
I have a GridView that displays a bound time(0) data type from SQL Server
2008. I am trying to get a bound field to display as 8:30 AM, for example,
and it displays as 08:30:00 instead. If I do the same on a SQL Datetime
column it works great. Is there some other formatting I should use? Below
is the bound column entry in the GridView. Thanks.
David
<asp:Label ID="LblToDoTime" runat="server" HtmlEncode="false" Text='<%#
Bind("ToDoTime", "{0:h:mm tt}") %>'></asp:Label>
2008. I am trying to get a bound field to display as 8:30 AM, for example,
and it displays as 08:30:00 instead. If I do the same on a SQL Datetime
column it works great. Is there some other formatting I should use? Below
is the bound column entry in the GridView. Thanks.
David
<asp:Label ID="LblToDoTime" runat="server" HtmlEncode="false" Text='<%#
Bind("ToDoTime", "{0:h:mm tt}") %>'></asp:Label>