Use Extension Methods to find first and last day of the month
- by Tim Hibbard
A lot of reports work on data from last month. It is a nice touch to have these dates pre-populated for your users. Using extension methods, the code can look cleaner too. Extension Methods: public static class DateHelper
{
public static DateTime FirstOfTheMonth(this DateTime dt)
{
…