CSharp examples for System:DateTime Month
To End Of Month
using System;/*from www. ja v a 2s . co m*/ public class Main{ public static DateTime ToEndOfMonth(this DateTime date) { return new DateTime(date.Year, date.Month, 1).AddMonths(1).AddDays(-1); } }