How to format an Eval/Grouped By timestamp?
Options
![Steve Stava](https://us.v-cdn.net/6037124/user_avatars/1255331.jpg)
Steve Stava
Member ✭
I have a timestamp value that I use in both Joined tables through the Eval capability as well as in the Grouped By of Aggregated output.
I would like to be able to Format the timestamp into a human readable format, but I am not finding the format timestamp filter.
How can this be accomplished without creating a new column in the database (for a formatted timestamp) or by looping through the list of items to create a formatted version of the timestamp?
Thanks!
I would like to be able to Format the timestamp into a human readable format, but I am not finding the format timestamp filter.
How can this be accomplished without creating a new column in the database (for a formatted timestamp) or by looping through the list of items to create a formatted version of the timestamp?
Thanks!
Comments
-
Right now that filter is not available on the query. Meaning you would have to do one of the two steps you want to avoid. We'll take a look at making that available for Evals/Grouped By.
-
thanks! I have gone with the table column for the time being 👍 -
Any updates on this one
Looking to show some data of revenue by month in human readable format (but all my dates are stores as timestamps in the DB) -
you can always format the timestamp into human readable in the response per usual. This post was referring to using this filter it in the query.
-
@Michael Udinski what do you mean by " you can always format the timestamp into human readable in the response per usual. "
I do not see an option to format a query response directly. Do you mean if I iterate over the result again and format it that way?I am also looking for a way to use for example "eval" to have a readable date column in my csv export.
-
Yes, you can use the format_timestamp filter to format timestamps into a human-readable format. Correct, this is not performed in the query. And yes, anytime you are manipulating a list you will want to iterate over it with a loop to manipulate that list. (https://docs.xano.com/working-with-data/timestamp)
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