日期:2014-05-17  浏览次数:20397 次

时间格式转换
12月25日上午11:00

这种格式怎么转换出来

------解决方案--------------------
            string str = DateTime.Now.ToString("MM月dd日") + (DateTime.Now.Hour > 12 ? "下午" : "上午") + DateTime.Now.ToString("hh:mm");

------解决方案--------------------
try...
richTextBox2.Text = DateTime.Now.ToString("MM月dd日tthh:mm");

------解决方案--------------------
Response.Write(DateTime.Now.ToString("MM月dd日tthh:mm"));
------解决方案--------------------
引用:
try...
C# code?1richTextBox2.Text = DateTime.Now.ToString("MM月dd日tthh:mm");

+1