在C#中,如何计算今天25年前的日期?
使用AddYears怎么样:
AddYears
DateTime then = DateTime.Today.AddYears(-25);
DateTime.Now.AddYears(-25)