CodePudding user response:
Dong zhong (DateTime. Today -) DaysCodePudding user response:
DateTime startDate=new DateTime (2020, 2, 20).
DateTime nowDate=new DateTime (DateTime. Now. Year, DateTime. Now, the Month, DateTime. Now, Day);
Int days=nowDate. Subtract (startDate) days;