如何在 C# 中将 DateTime 设置为每月的第一天?
var now = DateTime.Now; var startOfMonth = new DateTime(now.Year,now.Month,1);