Hi,
i want to display several record from database with data type "date"..but when display, the record displayed in datetime format (default)..what should i do to change the format date..i have tried many thing but it does not work..

now, this is mt coding

<asp:TemplateColumn HeaderText="Expiry date"  HeaderStyle-Width="10%"  SortExpression="CmpExpDate" visible="true">

<ItemTemplate>
<asp:Label Id="lblCmpExpDate" width="100px" Text='<%# DataBinder.Eval(Container, "DataItem.CmpExpDate") %>' Runat="server"  />
</ItemTemplate>

</asp:TemplateColumn>

i dont know then,what should i add to make it function well..please anybody can give me some suggestion..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.