Like other topics have covered, I had a reason to change dates into numbers. But I’m having trouble changing them back into dates that an if-then column recognizes as a date.
I used luxon to change a date to the X format then tried using luxon later on to change it back to a readable date but that didn’t work.
I tried the JavaScript approach here: How to convert unix epochtime into human readable format?
The if-then column still doesn’t recognize the result as a date.
For that matter, an if-then column doesn’t consider an X date a number either! I realize this has turned into two questions. One question is: What does an if-then column require to offer comparisons by date or number instead of text?
The other question would be how to solve this use case as elegantly and simply as possible. I’d like to compare several dates that may or may not be empty, find the latest one, and use it and some related text to describe the row. The date columns are two lookup columns and another basic date column. Making an array and rolling up to find the latest date works fine, but depending on which one is the latest I would like to use different text to describe the situation. The if-then column is to check if the latest date is in the future.
Examples of the text would be
“Waiting until Aug 1, 2024” (date from basic column)
“Waiting until Spring 2025” (date from lookup)
“Waiting until Dormant pruning start date” (date from lookup)
The reason the lookup dates aren’t just hardwired basic columns is to be able to change them depending on weather and therefore update all related rows.