c# - show just the date when bind a datetime Field in label in repeater -


i have repeater in asp.net page , bind data source repeater there label in repeater , text of label datetime field want label show me date not date , time

  <asp:label id="lbldate" runat="server" text='<%# eval("postdate") %>'></asp:label> 

this code show date , time together

add

dataformatstring="{0:dd/mm/yyyy}"   <asp:label id="lbldate" runat="server" text='<%# eval("postdate") %>' dataformatstring="{0:dd/mm/yyyy}" ></asp:label> 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -