我怎么会把这一点变成一个尝试?
private static DateTime _endDate = DateTime.Parse(System.Configuration.ConfigurationManager.AppSettings["EndDate"])
是
private static DateTime _endDate = DateTime.TryParse(System.Configuration.ConfigurationManager.AppSettings["EndDate"], out Datetime _endDate)