让NetAdvantage日历控件的“星期几”变为“几”(转)
using System.Threading;
using System.Globalization;
private void Cal_Load(object sender, System.EventArgs e)
{
string[] dayNames = {"日", "一", "二", "三", "四", "五", "六"};
CultureInfo culture = new CultureInfo("zh-CN");
culture.DateTimeFormat.DayNames = dayNames;
Thread.CurrentThread.CurrentCulture = culture;
}
对应dayNames,DayNameFormat选择Full
using System.Globalization;
private void Cal_Load(object sender, System.EventArgs e)
{
string[] dayNames = {"日", "一", "二", "三", "四", "五", "六"};
CultureInfo culture = new CultureInfo("zh-CN");
culture.DateTimeFormat.DayNames = dayNames;
Thread.CurrentThread.CurrentCulture = culture;
}
对应dayNames,DayNameFormat选择Full