Date type - separate date field as day and month in output [solved]
Options
![Pawel Magdanski](https://us.v-cdn.net/6037124/uploads/userpics/LHNYOT1GZ7AL/nLEHU316T8F65.jpg)
Pawel Magdanski
Member ✭✭✭
Hi I want to create a calendar which separately show which month and day of the month it is based on date type from Xano. I see that I can achieve that via timestamp and evals, but I can't see a solution for date type
Comments
-
You're looking for Xano to return two values - one for the month and one for the day of the month? If so, you can use create variable with a format_timestamp filter to pull the relevant parts (the "m" and the "d") into separate variables, and then ship those variables with your response. The same general principle applies to filling in lists of values, with just a touch more complexity.
-
I'm aware that I can do this with timestamp type. But what with date type?
-
you can convert your date to a timestamp with to_timestamp filter to do the rest of the things.
-
Ok I see, thank You for answer
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