6楼是正确的,如果我没记错的话ToLongDateString()则会输出2009年9月25日
程序代码:
namespace CMD_Demo { class Program { static void Main(string[] args) { string nowtime1 = System.DateTime.Now.ToString(); string nowtime1info = "长格式的时间显示:"; string nowtime2 = System.DateTime.Now.ToShortDateString(); string nowtime2info = "短格式的时间显示:"; Console.Write(nowtime1info); Console.WriteLine(nowtime1); Console.Write(nowtime2info); Console.WriteLine(nowtime2); Console.ReadLine(); } } }