ASP.net date formatting -
i have bound date fields(datetime type column values) grid. in grid, column definition code is:
<asp:label id="lblfromtimeforteacher" runat="server" text='<%# eval("fromtime", "{0:hh/mm}")%>' visible="false" width="99%" />
right now, label text 08-45. please tell how can label text 08:45? in advance.
custom datetime formatting here. in case change convert.todatetime(eval("fromtime")).tostring("hh:mm")
Comments
Post a Comment