Cognito-forms – Filtering entries by a date range

cognito-forms

I'm trying to use the entries of this form to make spreadsheets for billing my clients. I'd like to set a custom filter for each client so that on the day I need to bill them I can simply apply the preset filter and it will display a period of entries from, say, last monday through friday. I typically will run this on Monday mornings, so I was trying to filter by "today" through "today" minus six days. But, I can't figure out the syntax of how to write that in the advanced editor.

Best Answer

The Advanced Filtering code I figured out approaches it a little backward from how I was thinking. This is the filter code that worked for me:

=Date.AddDays(7) >= "today"
Related Topic