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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -