Date time functions in instantsearch.js

I have date field included on the indexed objects, is there a way format the date or display as “days since” when it’s rendered on the frontend?

I’m using instantsearch.js and the default templating.

Hey,

You can use connectors to apply a custom function on any attribute at display time:

I’d recommend to give a try at DayJS which is way lighter than the famous MomentJS:

Hope that helps!