Formatting data like datetime


My database is returning a datetime value, but I want to display it as only a date in UI Bakery. Can someone advice how to do this?

I tried something like the below and it returned an undefined value in the UI Bakery preview mode.


Any guidance with this would be appreciated. Thanks!

Hi @Oby, could you please share the example? probably, we will have to use a map function of Javascript.

also, you can try {{ new Date(item.datetime).toDateString() }}

Thanks! Using the ToDateString function worked.

1 Like