function lastDay returns date ( input d as date ):
return add-interval( date( month( d ), 1, year( d )), 1, "month" ) - 1.
end.
def var v-startdate as date no-undo.
def var v-enddate as date no-undo.
def var ip_date as date no-undo.
set ip_date.
v-startdate =...