Z5 Concepts

C#.NET - ASP.NET : Date Format in Item Template with Bind()

by on 25. February 2011 21:29

The following information is to show how to use the date format in item template in ASP.NET with C#.

To format the date when calling the Bind() function on your .aspx page, see below for details:



<asp:TextBoxID="txtBox" runat="server" Text='<%# Bind("DateDataField", "{0:d}") %>'>





If you have any questions or problems, feel free to e-mail me at DJ@z5concepts.com


Troubleshooting | Visual Studio 2005 | Visual Studio 2008 | Web hosting | Websites

Comments are closed

Theme by Z5 Concepts