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);
        }


 
posted @ Friday, June 11, 2010 6:26 PM
Print

Comments on this entry:

No comments posted yet.

Your comment:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«May»
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789