Helper methods StartOfMonth and StartOfNextMonth

 There are couple methods recently added to My DateTimeHelper class
    public static DateTime StartOfMonth(this DateTime dateValue)
        {
            return new DateTime(dateValue.Year,dateValue.Month,1,0,0,0);
        }
        public static DateTime StartOfNextMonth(this DateTime dateValue)
        {
            return StartOfMonth(dateValue).AddMonths(1);
        }

 

Advertisements