DateTime格式转换结果
Console.WriteLine(string.Format("ToLongDateString:{0}", DateTime.Now.ToLongDateString())); Console.WriteLine(string.Format("ToLongTimeString:{0}", DateTime.Now.ToLongTimeString())); Console.WriteLine(string.Format("ToOADate:{0}", DateTime.Now.ToOADate())); Console.WriteLine(string.Format("ToShortDateString:{0}", DateTime.Now.ToShortDateString())); Console.WriteLine(string.Format("ToShortTimeString:{0}", DateTime.Now.ToShortTimeString())); Console.WriteLine(string.Format("ToString:{0}", DateTime.Now.ToString())); Console.WriteLine(string.Format("ToString(\"yyyy - MM - dd HH:mm:ss.ffff\"):{0}",