我需要将日期时间转换为日期时间用逗号格式化。这是必需的日历appointment.Start(EWS托管API):使用逗号将日期时间DateTime转换为日期时间#
appointment.Start = new DateTime(2014, 1, 2, 9, 0, 0);
,但我想做的事:
DateTime myDateTime = DateTime.Now;
appointment.Start = new DateTime(myDateTime);
此错误
为“最好的重载方法匹配System.DateTime.DateTime(长)' 有一些无效的参数。
显然缺少参数,但我不知道哪些参数!
请看下面链接的信息在C#的DateTime格式: http://msdn.microsoft.com/ en-us/library/8kb3ddd4(v = vs.110).aspx –