Adding Days to Start Date ( Date Parameter) to get End Date-next week

I am using Date Paramer, I have input start date parameter as STDT, now, in my query, I am giving date to be in between ${STDT} and ${STDT +7} for a week ahead. How should I correct this- ${STDT +7}?

Hi shivam_p,

you can use your db-standard ways of adding dates. For example, if you are using mysql, you could use DATE_ADD()

Regards,
Eduardo

Hii Eduardo, thanks for your reply. I am just trying the DATE_ADD(), How can i use ${STDT} in that?

Hi shivam_p,

try with
DATE_ADD(${STDT}, INTERVAL 7 DAY)

Regards,
Eduardo