D
David C
We have an SQL 2008 server database with a Time(0) data type. I am trying
to format the Label in a GridView to show the time as h:mm AM ( for example
9:00 AM). I have the format below in the Bind that is giving me 9:00:00.
Can someone help me with this format? Thanks.
David
<asp:Label ID="LblToDoTime" runat="server" Text='<%# Bind("ToDoTime",
"{0:h:mm tt}") %>'></asp:Label>
to format the Label in a GridView to show the time as h:mm AM ( for example
9:00 AM). I have the format below in the Bind that is giving me 9:00:00.
Can someone help me with this format? Thanks.
David
<asp:Label ID="LblToDoTime" runat="server" Text='<%# Bind("ToDoTime",
"{0:h:mm tt}") %>'></asp:Label>