D
David C
I am trying to get a LinkButton to show a formatted date as part of the text
but it is not working. Below is what I have. MealDate is a valid date, e.g.
11/17/2008. I want it to come out like "Novenber 17". Below is my button
settings.
Thanks.
David
<asp:LinkButton ID="LinkButton1" runat="server"
Text='Sun<br /><%# String.Format(Eval("MealDate","{0:MMMM dd}") %>'
Width="110" CommandArgument='<%# Eval("MealDate", "{0:d}") %>'
CommandName="Insert" OnCommand="LBtnMealEdit_Command">
</asp:LinkButton>
but it is not working. Below is what I have. MealDate is a valid date, e.g.
11/17/2008. I want it to come out like "Novenber 17". Below is my button
settings.
Thanks.
David
<asp:LinkButton ID="LinkButton1" runat="server"
Text='Sun<br /><%# String.Format(Eval("MealDate","{0:MMMM dd}") %>'
Width="110" CommandArgument='<%# Eval("MealDate", "{0:d}") %>'
CommandName="Insert" OnCommand="LBtnMealEdit_Command">
</asp:LinkButton>