现在用的ajax的CalendarExtender控件,得到的日期格式如:2/8/2010我要得到的格式是2010/2/8
设置Format=""Format="yyyy/MM/dd"
我们都知道CalendarExtender控件默认显示的是英文,而且它没有任何属性或方法,可以显示中文。可是我们要显示中文怎么办呢。
我们可以在asp:ScriptManager中加二个属性就行了就。
EnableScriptLocalization="true"
<asp:ScriptManager ID="ScriptManager1" EnableScriptGlobalization="true" EnableScriptLocalization="true" runat="server" ></asp:ScriptManager>