111,120
社区成员
发帖
与我相关
我的任务
分享 DateTime dt = DateTime.Now;
MessageBox.show(dt.Tostring("yyyy年MM月dd日");
string s = "2012-10-12";
DateTime dt = DateTime.ParseExact(s, "yyyy-MM-dd", null);
Console.Write(dt.ToString("yyyy年MM月dd日"));
DateTime dt = DateTime.Now;
Label4.Text = dt.GetDateTimeFormats('D')[0].ToString();//2012年10月19日
string s = "2012-10-12";
DateTime dt = DateTime.ParseExact(s, "yyyy-MM-dd", null);
Console.Write(dt.ToString("yyyy年MM月dd日"));