Just short comment, not sure why you need to call sql date_add function?
Your SelectTermination takes a parameter as %DateTime. I would just use simple $H as current date/time then subtract DaysBack back.
e.g.
set tDate=+$H-..#DaysBack
- Log in to post comments