def month_boundaries(dt=None):
    dt = dt or date.today()
    wkday, ndays = calendar.monthrange(dt.year, dt.month)
    start = datetime(dt.year, dt.month, 1)
    return (start, start + timedelta(ndays - 1))


#-------------------------------------------------------------------------------
Return a 2-tuple containing the datetime instances for the first and last 
dataset/ETHPy150Open dakrauth/django-swingtime/swingtime/utils.py/month_boundaries