I have an input field that has current date prepulatwe as initial value. By default it shows as MM/DD/YY, but I would like to show March 9, 2023. So I try to use formatted as and it keeps giving me an error.
Hi there, @aslan.karimov… you can’t do what you are trying to do with an input element that has a content format of date. The reason you are getting an error is because as soon as you format a date, you turn it into a text, and then you are trying to show a text value in a date input, and that doesn’t work.
If you are simply trying to display the current date in the input element, you can set the content format to text, but I’m guessing that is not what you are trying to do. If you want the user to be able to enter a date in the input in the format of March 9, 2023, then to the best of my knowledge, you can’t do that.
Best…
Mike
Well, you’d have to parse that string into a date. The OP probably needs guidance here on what dates are and how they work.
This old chestnut is helpful (though SLIGHTLY out of date as it predates Bubble’s “arbitrary date” expression. [which is itself a date parser]):
This topic was automatically closed after 70 days. New replies are no longer allowed.