How to set to True if data was entered 'this week'

Hi,
I would like to be able to set a boolean to true or false whether a data entry was set this week or not.

  • I can get the current date.
  • I can get the date of the data entry.
  • I can get the day of the week which any data was entered.
  • I can get the today’s day of the week (real time).

How would I use any of this information to be able set a boolean to true if the data entry happened this week (in real time)?

Any help would be appreciated.

Its not clear if the “this week” you are looking for is the last 7 days or since the last start of the week day (like Sunday)?

Hi, by “this week” I meant between the start of the current week (Sunday) and today. Not the last 7 days because the last 7 days can include part of this week and part of last week.

I think I managed to figure out what I was after. Please look below and let me know if this will always work. I think it does work.