Hi @Sword55 ,
Welcome to Microsoft Q&A forum and thanks for your query.
Please try below expression and it should help achieve your requirement.
@formatdatetime(adddays(converttimezone(utcnow(),'UTC','Eastern Standard Time'),int(concat('-', string(pipeline().parameters.P_DaysToGoBack)))),'yyyy-MM-dd hh:mm:ss')
Another approach is you need to use the below expression and pass the parameter/variable value as negative integer (-90):
@formatdatetime(adddays(converttimezone(utcnow(),'UTC','Eastern Standard Time'),pipeline().parameters.P_DaysToGoBack ),'yyyy-MM-dd hh:mm:ss')
Hope this helps. Do let us know if you have further query.
----------
- Please don't forget to click on
and upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators