我想2日期间知道多少分钟?
例如:现在 - 明天在准确的时间将返回我1440
解决方案 日期时间DT1 = DateTime.Now;
日期时间DT2 = DateTime.Now.AddDays(1);
INT差异= dt2.Subtract(DT1).TotalMinutes;
I would like to know many minutes between 2 dates?
Example : Now - tommorow at the exact time would return me 1440.
解决方案DateTime dt1 = DateTime.Now;
DateTime dt2 = DateTime.Now.AddDays(1);
int diff = dt2.Subtract(dt1).TotalMinutes;