Different formula results for the same input

Hi,

I have a formula in my formula panel to format date strings:

Basically for an input equal to “2024-09-01” it must return “Set/24” as an output (just as shown in the picture above).

However, when I use this same formula inside the component formula field with the same input, it is returning “Ago/24” instead of “Set/24” (picture bellow)

image

Is that a bug or I am missing something here?

Best

Hi @HeFur!

You can use the Date element and set any format you want. We also have a Date plugin extension for some more complex functionality.

Unnecessary JavaScript with WeWeb is bad practice. Use JavaScript only when strictly necessary.

I had to use javascript in this case because I wanted the month format following another language abreviation (Example: Set instead of Sep).

Anyway, I considered the data as a string to retrieve te values and that worked just fine.

Problem solved