FUNCTION IsLastDayThisMonth(tdDate) tdDate = GOMONTH(tdDate,0) && Force DateTime to Date RETURN MONTH(tdDate) != MONTH(tdDate+7) ENDFUNC