This project is read-only.

First()

Nov 30, 2011 at 11:18 PM

Hi, wondering why you didn't use:-

 

public static DateTime First(this DateTime current)
{
            //DateTime first = current.AddDays(1 - current.Day);
            DateTime first = new DateTime(current.Year, current.Month, 1);
            return first;
}

 

seems clearer, to me anyway. Small point. Thanks for the extensions!

 

Andy