c#获取两个时间相差多少分钟

2025-04-23 15:34:15
推荐回答(1个)
回答1:

TimeSpan span = date1 - date2;
int n=span.Minutes;