changing time format sent to the frontend
Options
![Quintin Pearson](https://us.v-cdn.net/6037124/user_avatars/3356361.jpg)
Quintin Pearson
Member ✭
My time is a unix timestamp in milliseconds, Have tried to change it to display the date but I had no luck, I get errors or it messes up the entire endpoint, can someone please help 😄
Comments
-
- you can use the format_timestamp filter to format a timestamp into a human-readable format... You can see in our documentation and also watch the tutorial on how to do so at the top of the page there - https://docs.xano.com/working-with-data/timestamp
-
Hi! Nice to meet you. Just wanted to say thank you for the tutorials - they are really informative & helpful!
I have a similar question here. I would like to change all timestamp in my query to r format, or preferrably eg. 'MM/DD 4:00pm'. I've tried filtering but it doesn't update the data. Any pointers here?
-
- You can use the format_timestamp filter. The tutorial in the docs should cover that and the documentation also links to the character list from php.net that you can use to combine different characters to accomplish this format - 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