I am calling one of the column dateadded in the datalist like:
<asp:Label ID="lblDate" runat="server" Text='<%# Eval("DateAdded") %>'></asp:Label>
On display it shows 24/04/2012 12:07:52 and i want to display : April 2012,
Can any one provide any assistance on how to get this display Thanks updated:
I trid this with no success:
<asp:Label ID="lblDate" runat="server" Text='<%# Eval("DateAdded").ToString("yyyyMM") %>'></asp:Label>
updated 2 [working]:
'<%# Eval("DateAdded" ,"{0:MMMM yyyy}") %>'>