Format or convert date timezone

Please, help! I’m triyng to convert a date timezone, but I got stock. In my data a have UTC date, but I want to show it as UTC-4 in a chart.js label.

• If I use fortmatDateTimezone, it doesn’t make any change.
• If I use convertDateTimezone, it works, but I can not add a second parameter to format the date. So I then involve it into fortmatDate, but it changes date to the original UTC again.

Maybe am I doing something wrong?

This is my code:

return collections['c1d838e9-9c03-4903-ad1e-14fda7d37f54']?.['data'].map(item =>
        pluginFormulas['832d6f7a-42c3-43f1-a3ce-9a678272f811']['formatDate'](
            pluginFormulas['832d6f7a-42c3-43f1-a3ce-9a678272f811']['convertDateTimezone'](
                item.mes,
                'America/Santo_Domingo',
                false
            ),
            'MMMM',
            'es'
        )
    )

Hi Domingo, welcome to the community :waving_hand:

Just to confirm, are you using the “Date” Plugin? https://docs.weweb.io/formulas/date.html#date-plugin

With the Date plugin and using noCodeFormulas you can easily do this.

  1. Install Date plugin
  2. Use nocodeformulas
  3. Use “ConvertDateTimezone”
  4. Usefirst parameter as current “Date()”
  5. Use second parameter as timezone, you can reference which string to use here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Then you will have your date string ready to use in whatever way you’d like

Hope this helps