Date type - separate date field as day and month in output [solved]

Options
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

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options
    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. 
  • Pawel Magdanski
    Pawel Magdanski Member ✭✭✭
    Options
     I'm aware that I can do this with timestamp type. But what with date type?
  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options
     you can convert your date to a timestamp with to_timestamp filter to do the rest of the things. 
  • Pawel Magdanski
    Pawel Magdanski Member ✭✭✭
    Options
     Ok I see, thank You for answer