JDP 發表於 2011-3-3 17:02:52

C# 取得中華民國(台灣)日期格式

在.NET 2.0 之後,你可以直接輸出民國的日期格式:using System.Globalization;
TaiwanCalendar twC = new TaiwanCalendar();                  
string tdate = "民國 " + twC.GetYear(dDate) + "/" + twC.GetMonth(dDate) + "/" + twC.GetDayOfMonth(dDate);輸出結果:民國 98/11/20

Reference: http://felixhuang.pixnet.net/blog/post/23716192
頁: [1]
查看完整版本: C# 取得中華民國(台灣)日期格式