Subtract days from a DateTime October 19, 2022 by Tarik DateTime dateForButton = DateTime.Now.AddDays(-1);