How can I set a DateTime to the first of the month in C#?
var now = DateTime.Now; var startOfMonth = new DateTime(now.Year,now.Month,1);