Jun 22, 2023 09:52 AM - edited Jun 22, 2023 09:53 AM
Hi all
I've been using Glide (www.glideapps.com) to create a front end, and their native DB has a lovely "Relative date" field.
ie - post a comment, and that formula can be used to show "Posted just now" or "Posted 2 weeks ago". Before I write a huge Airtable formula so I can do it in my base - does anyone have any suggestions of the best way to do this? ie
If difference between now and {date} is :
etc etc
Must be a better way than a huge IF statement?
Thanks
Andrew
Jun 23, 2023 04:05 AM
Hm, an IF seems like the way to go here. You'd just need 6 IFs right? "Just now", minutes, hours, days, months, years? Each if would have its own "DATETIME_DIFF()" and you'd be good to go?
Jun 23, 2023 04:42 AM
Here is what I have ended up with :