SQL+C#实现获得当前月的第一天与最后一天
话不多说,请看下面 //C# 代码 int year = DateTime.Now.Year; int month = DateTime.Now.Month; DateTime firstDayOfThisMonth = new DateTime(year, month, 1); DateTime lastDayOfThisMonth = new DateTime(year, month, DateTime.DaysInMonth(year, month)); //SQL代码 DECLARE @NOW DATETIME DECLARE @FistDayOfThisMonth DATETIM
下载地址
用户评论