project/DotNetUtils/Extensions/DateTimeExtensions.cs
/// <summary>
/// Get the current month end date
/// </summary>
/// <param name="date">The original date</param>
/// <returns>The current month start date</returns>
Get the current month end date
Get the current month end date
public static DateTime GetMonthEndDate(this DateTime date)
        {
            var monthStateDate = date.GetMonthStartDate();
            return monthStateDate.AddMonths(1).AddDays(-1);
        }
public static DateTime GetMonthEndDate ( this DateTime date ) { var monthStateDate = date . GetMonthStartDate ( ) ; return monthStateDate . AddMonths ( 1 ) . AddDays ( - 1 ) ; }
Get the current month end date
Get the current month end date
The current month start date
The current month start date
DateTime
this
<not_specific>
date
<not_specific>
The original date
The original date