--"set dateformat dmy "+"select * from Rec_MonitoringProfile_age ("+params["paramLpu"].value+",'"+params["paramBegDate"].value+"','"+params["paramEndDate"].value+"')"
select *
from rpt.rec_monitoringprofile_age_pg(
cast($1 as int8), 
cast(to_timestamp($2,'dd.mm.yyyy') as timestamp), 
cast(to_timestamp($3,'dd.mm.yyyy') as timestamp))
