Pages

Friday, November 7, 2008

Format Binding Field

I'm new to ASP.net and get the problem with formatting a binding to an expected format, like a culture date. Here is what I found and wanna post here not only for my later usage but also for whoever gets the same problem.
<asp:label runat="server" id="lblTimeLine" text="'<%#Bind("time_line", "{0:dd/MM/yyyy}")%/>

No comments: