Sharepoint 2010 Sharepoint日期时间控件
如何在Sharepoint DateTime控件中格式化日期?DateTimeControl.LocaleId=SPContext.Current.RegionalSettings.LocaleIdSharepoint 2010 Sharepoint日期时间控件,sharepoint-2010,datetimepicker,Sharepoint 2010,Datetimepicker,如何在Sharepoint DateTime控件中格式化日期?DateTimeControl.LocaleId=SPContext.Current.RegionalSettings.LocaleId 或者如果LocaleId不起作用,我有时会遇到这种情况 i、 e DateTimeControl.LocaleId=2057适用于英国 德语的DateTimeControl.LocaleId=1031 DateTimeControl.LocaleId=Convert.ToInt32(SPContex
或者如果LocaleId不起作用,我有时会遇到这种情况 i、 e
DateTimeControl.LocaleId=2057适用于英国
德语的DateTimeControl.LocaleId=1031
DateTimeControl.LocaleId=Convert.ToInt32(SPContext.Current.RegionalSettings.LocaleId)您可以使用自定义格式属性 dateTimePicker1.Format=DateTimePickerPerformat.Custom; dateTimePicker1.CustomFormat=“MMMM-dd,yyyy-dddd”
参考资料:虽然链接可能包含有用的信息,但最好在此处包含相关部分。链接可能会变得无效。