0

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..

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Citation
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.