Forum Academy Marketplace Showcase Pricing Features

How to reformat data from a feed

Using Bubble’s API Connector plugin, I’m displaying metadata which is being powered off by my RSS feed. I have one particular metadata field that displays a start and end date as the following:

<dates>start=2017-05-12T20:00:00Z; end=9999-12-31T00:00:00Z; scheme=W3C-DTF</dates>

When displaying that information on my Bubble app, it looks like the following:

How can I reformat the data to show just the dates like so?

May 12, 2017
December 31, 9999

have a look at the bubble reference - your looking to “truncate” the text or “truncate from end” basically if may statement is “Hello Fello” :truncate5 would start from 5 characters in and the opposite for the latter. you may need to do this twice in the two rows to make it exactly as you describe.

Thanks for pointing out the truncate function. However, given that I want to reformat the date to a different style, it was easier to just add an additional field to display the date in the format that I was looking for.