I want to apply a filter a table to show me only rows with a date before today or this year. The date I am trying to use is based on a formula (another date +5 years), and I’m trying to use filter logic, but Coda seems to treat these kinds of dates as text for the purposes of filtering - thus I’m not able to choose ‘before’ ‘after’, etc. Anyone know answers for this?
As @Federico_Stefanato mentioned, it’s always better to add a dummy doc to understand your use case.
I made below a quick sample that might suite you, by using controls to have full flexibility on your filters.
On top of it, I would recommend to filter only on views and to keep the main base intact.
There are a couple things to check here. If you change the column format type to “Date”, it should respect that format in the dropdown for filtering and other items. Right now its formatted as a Text column so it’s reading it as a text field.
Depending on how you are formulaically creating the date, you might need to add the ToDate() formula to convert it to a date data type.
For this instance, with calculating the Year, Month, and Day separately, you might need to use the ToDate() formula.
You’re right! I thought that once a date column was a formula and formatting as a date would break the formula mode. Didn’t realize it can be both a formula and a date…
I notice when I CONCATENATE a date that has been formatted a certain way, it is interpreted as the actual underlying date info. So if I CONCATENATE("[date]") where date row reads “August 2019” then it will show up as “2019-08-01” (which is incorrect because the day is not meaningful data).