set DateTime to start of month January 1, 2023 by Tarik var now = DateTime.Now; var startOfMonth = new DateTime(now.Year,now.Month,1);