Is there a way to add a no-code conditional formula for the format of a date using the DATE plugin?
It would great if we could just add a formula in the DATE plugin for Format - (instead of a dropdown) - to enable conditional date format display. I posted it as a feature request.
Just curious if I am missing something and there is a way to already do this …
have you tried the formatDate formula? You can specify the format with a string as second parameter, and of course it can be a dynamic variable.
I’m confused where I would put the formatData formula as you described - In the “Date” > “edit formula” I am binding to the date in the Xano table I want to display. The “Format” just gives me drop down options of specific formats. Would I use the “Custom Format” field for a conditional formula? I am basically trying to have some logic that is like "if the date is less than X days away use THIS format - if the date is in the next calendar year use THIS format, etc etc.
right, I thought you were using a text element. If you use a text element you can bind it with the formula and get the same effect of the date component but with dynamic format.
Ahhhh … I will try using a text element - but seems a shame as there seems to be a lot of bells & whistles in the DATE plugin.
So, my feature request submitted to WeWeb - adding an Edit Formula option for Format in the DATE plugin - is still a good idea