below is my code:
<asp:DataList id="DataList1" runat="server" GridLines="None" width="100%">
<ItemTemplate>
<table border="1" cellpadding="3" cellspacing="0" width="100%">
<tr><td>Booked Date</td>
<td><asp:Label id="lbl_BookDate" runat="server" text='<%#
container.dataitem("BookDate")%>'/></td></tr>
</table>
</ItemTemplate>
</asp:DataList>
Can I know how to format the date to ddmmyyyy? I know I can do it in
Datagrid with this code:
<asp:BoundColumn DataField="BookDate" HeaderText="Book Date"
DataFormatString="{0:dd/MM/yyyy}">
But how do I do it in datalist? Can anyone help?