I want to be able run a query on table which will do a count for all rows from the beginning of the week. I am using the getDayofWeek block to get the number of the day and want to use that to calculate how many days I have to go back to get to the beginning.
e.g. Thusday is 4, so I know that I have to go back 3 days to get Monday. Question is, what block or blocks can I use to subtract x days from the current date?