Posted on
2009-03-12 16:28
Leon0812
阅读(
266)
评论()
收藏
举报

Code
using System.Globalization;
ChineseLunisolarCalendar cc = new ChineseLunisolarCalendar();
this.datetime.Text = DateTime.Today.ToString("yyyy年MM月dd日 ")
+ CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(DateTime.Now.DayOfWeek) + " 农历"
+ CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(cc.GetMonth(DateTime.Today))
+ intTostring(cc.GetDayOfMonth(DateTime.Today));
以上输出为:2008年09月04日 星期四 农历八月初五