Round result created_at and adding custom string
Hi,
I've managed to convert the basic timestamp to minutes ago if it's under 60 minutes, hours ago if it's under 24hours and days ago if it's over 24h ago. I now have two problems left:
1. Where do I add the "round" filter at the end so that there are no decimals?
2. How can I add the string "minutes ago/hours ago or days" ago to the response?
Here's my function stack so far:
Answers
-
Hey! You add the
round filter
to the end of the variable/value that you're manipulating. To add text to this value, you can use theconcat
filter (after youround
it), which allows you to provide a value to concat with.
I hope this information helps, but let me know if you have any other questions :) -
Thank you! I actually managed to figure it out earlier, but doing exactly what you described :)
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback