It looks like you're new here. Sign in or register to get started.
RecDate.RESET; RecDate.SETRANGE("Period Type",RecDate."Period Type"::Date); RecDate.SETRANGE("Period Start",MonthStartDate,MonthEndDate); NoofDays := RecDate.count; or StartDate:= DMY2DATE(01,Month,Year); EndDate := CALCDATE('CM',StartDate); NoofDays := (EndDate - StartDate)+1;
Comments
SG