Question:
I have a repeater that is populated with data from a .json feed. I’m wondering if there is a way to change how the data in the start_date field below is displayed, like the format of the date or to have the time be displayed as am/pm format? Or is that not possible, since the data is just quote text? Currently it’s just populating a text box in the repeater.
Product:
Wix editor dev mode
This is more of a general javascript question but you can use a date library to do a variety of transformations to your date strings before they’re passed to the repeater. A popular library to do this is: https://date-fns.org/
You can install npm packages like date-fns in Velo: Working with npm Packages
JavaScript itself also has a variety of string output formats for Dates: Date - JavaScript | MDN
1 Like