DateTime localDate = DateTime.Now;
DateTime dt = new DateTime(localDate.Year, localDate.Month,
DateTime.DaysInMonth(localDate.Year, localDate.Month),
localDate.Hour, localDate.Minute, localDate.Second);
dt 值为31-08-2013 PM 06:45:00
因为我的系统日期格式是PM 06:45 30-08-2013
.
我想在类型不是08-31-2013 18:45:00
类型的变量中获取值。DateTime
string