I have bound date fields(datetime type column values) to my Grid. In the grid, the column definition is like so My code is:
<asp:Label id="lblFromTimeForTeacher" runat="server" Text='<%# Eval("FromTime", "{0:hh/mm}")%>' Visible="false" Width="99%" />
Right now, the label text is 08-45. Could someone please tell how can I get the label text as 08:45? Thanks in advance.