string overplusdays = (buymonth - nowtime).ToString();
Literal7.Text = overplusdays;
最后得到的
剩余天数:104.06:41:22.9218750正确的天数应该是 104.3天
怎么格式化才行?
Literal7.Text = overplusdays;
最后得到的
剩余天数:104.06:41:22.9218750正确的天数应该是 104.3天
怎么格式化才行?
Literal7.Text = ts.Days.ToString();
TimeSpan ts = buymonth - nowtime;
Literal7.Text = ts.TotalDays.ToString();