這是我繼續我的工作:Adding DateTime in C# 我已經可以在我的約會上添加幾天。乘以c#中的年份?
我的問題是:
一)有可能一年繁殖成datetime? 例如。
DateTime newDate = DateTime.Today.AddDays(10);
long xDate = DateTime.Now.Year * newDate; // error : Operator '*'
// cannot be applied to operands of type 'int' and 'System.DateTime
這是幹什麼用的?我不明白你想做什麼,對不起... – Marco 2011-05-24 07:30:55
結果應該是什麼? – 2011-05-24 07:30:57
你會期望結果是什麼意思? – 2011-05-24 07:31:27