Asp.net ajax日历扩展程序月份名称显示
我在文本框中添加了一个扩展器来选择日期。显示相应月份编号的日期。有没有办法得到月名而不是月号?例如,我得到的是04-04-13,我想要的是04-04-13。提前谢谢 我的密码是Asp.net ajax日历扩展程序月份名称显示,asp.net,ajax,date,calendar,Asp.net,Ajax,Date,Calendar,我在文本框中添加了一个扩展器来选择日期。显示相应月份编号的日期。有没有办法得到月名而不是月号?例如,我得到的是04-04-13,我想要的是04-04-13。提前谢谢 我的密码是 <asp:TextBox ID="txtInvDate" runat="server" Height="21px" Width="88px" ontextchanged="txtInvDate_TextChanged" AutoPostBack="True"></asp:TextBox&
<asp:TextBox ID="txtInvDate" runat="server" Height="21px" Width="88px"
ontextchanged="txtInvDate_TextChanged" AutoPostBack="True"></asp:TextBox>
<asp:CalendarExtender ID="txtInvDate_CalendarExtender"
runat="server" TargetControlID="txtInvDate" Format="dd-MM-yyyy">
</asp:CalendarExtender>
您可以尝试以下格式:
<asp:CalendarExtender ID="txtInvDate_CalendarExtender" runat="server" TargetControlID="txtInvDate"
Format="dd-MMM-yyyy" >
</asp:CalendarExtender>
特别是:
请注意,这取决于服务器上的当前区域性