Made on the first day of the month

/// made on the first day of the month
/// </ the Summary>
/// <param name = "datetime"> To get the first day of the month time </ param>
/// <returns A> </ returns A>
the dateTime FirstDayOfMonth Private (the dateTime datetime)
{
    return datetime.AddDays (. 1 - datetime.Day);
}

Guess you like

Origin www.cnblogs.com/opts/p/11269749.html