How to make selectors dynamic for Date Picker in Service Now?

As part of Service now automation I need to download some daily(working days) reports from the Service Now. According to the requirement on I need to consider previous day’s data as Today’s data. On every Monday, I need to consider previous week’s Friday’s data as of Monday data. For that, I need to change the date from “Date Picker”.
How can I make the selectors dynamic to satisfy the given condition? (Avoid usage of Send Hotkey)
I’ve tried by adding variables to make selector dynamic but it is not working for me.

  <html title='Support Tickets | ServiceNow' />
<webctrl tag='A' aaname='‎Friday, {{Thismonthyear}} innertext='{{day}}' />

PFB snaps for the reference.