# Error when I change date format?

**URL:** <https://forum.bubble.io/t/error-when-i-change-date-format/214631>\
**Category:** Need help\
**Created:** [July 8, 2022, 3:25pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631 "2022-07-08T15:25:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedrodsabugueiro](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pedrodsabugueiro/32/202699_2.png) [@pedrodsabugueiro](https://forum.bubble.io/u/pedrodsabugueiro)\
**Post date:** [July 8, 2022, 3:25pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/1 "2022-07-08T15:25:24Z")

</div>

Hi,  
I’m trying to change the displayed date format in my app by using “:formatted as dd/mm/yy”.  
For some reason, however, I get an error back (check attached screenshots).  
 ![1](https://us1.discourse-cdn.com/bubble/original/3X/b/4/b4c4087a63f01deb0c517ce7845e714bc576c9ce.png)

![2](https://us1.discourse-cdn.com/bubble/original/3X/c/0/c0397b3172062cb3391f717c4e702a14369b548f.png)

![3](https://us1.discourse-cdn.com/bubble/original/3X/8/5/853968eb83a9ce056c6a4e51b6f628edf8f854ec.png)

What am I doing wrong?  
Thank you

---

<div class="post-metadata">

**Author:** ![malikinoleg2008](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/malikinoleg2008/32/136364_2.png) [@malikinoleg2008](https://forum.bubble.io/u/malikinoleg2008)\
**Post date:** [July 8, 2022, 3:31pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/2 "2022-07-08T15:31:26Z")

</div>

Hi!

Just try to change content type of this input to text. But u should use date/time picker to take data from user 🙂 , otherwise it can give you mismatch

---

<div class="post-metadata">

**Author:** ![pedrodsabugueiro](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pedrodsabugueiro/32/202699_2.png) [@pedrodsabugueiro](https://forum.bubble.io/u/pedrodsabugueiro)\
**Post date:** [July 8, 2022, 3:38pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/3 "2022-07-08T15:38:00Z")

</div>

Hi!  
Thank you for your time!  
Not sure if I understood. The input whose date format I’m trying to change is a date/time picker already.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [July 8, 2022, 3:38pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/4 "2022-07-08T15:38:13Z")

</div>

You’re using a date/time picker input, which obviously outputs a value which is a ‘date’.

If you want to set an initial content, then that must also be a ‘date’.

In your screenshot, you’re applying formatting to the ‘date’, which turns the value into a ‘text’, which is the wrong type of data for a date/time picker.

So just remove the formatting on the date in the initial content for it to work correctly.

---

<div class="post-metadata">

**Author:** ![pedrodsabugueiro](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pedrodsabugueiro/32/202699_2.png) [@pedrodsabugueiro](https://forum.bubble.io/u/pedrodsabugueiro)\
**Post date:** [July 8, 2022, 3:42pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/5 "2022-07-08T15:42:32Z")

</div>

Hi, thank you for your help!

Ok, but removing the formatting, the initial content is then mm/dd/yy (see picture). I’m trying to have the inital content be dd/mm/yy.

![4](https://us1.discourse-cdn.com/bubble/original/3X/d/9/d9872f5360ff693ce2562d78d863655ad18fa422.png)

![5](https://us1.discourse-cdn.com/bubble/original/3X/9/9/99de4fcef7e224f224a96938ab82d096ce0ab1a8.png)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [July 8, 2022, 3:52pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/6 "2022-07-08T15:52:16Z")

</div>

> Ok, but removing the formatting, the initial content is then mm/dd/yy (see picture). I’m trying to have the inital content be dd/mm/yy.

No, the initial content is a ‘date’ - it’s _not_ mm/dd/yy…

It’s displayed _visually_ in the element as “mm/dd/yy” but the _value_ remains a ‘date’

You can set the display format of the date/time picker’s ‘date’ value using the “Date Format” option in the element properties editor (you can format it any way you like).

![image](https://us1.discourse-cdn.com/bubble/original/3X/6/c/6ca09fe38de20f96f4606dfb34bfd61fc1a86db4.png)

---

<div class="post-metadata">

**Author:** ![pedrodsabugueiro](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pedrodsabugueiro/32/202699_2.png) [@pedrodsabugueiro](https://forum.bubble.io/u/pedrodsabugueiro)\
**Post date:** [July 8, 2022, 3:58pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/7 "2022-07-08T15:58:03Z")

</div>

My date/time picker doesn’t show that Date format option. Not even if I change input type to Date only (as in your case), instead of Date & Time.

 ![6](https://us1.discourse-cdn.com/bubble/original/3X/0/b/0b9fefb9dd5dd83c9a09fd9eed385b2cb6eb9690.png)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [July 8, 2022, 4:12pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/8 "2022-07-08T16:12:34Z")

</div>

I’m guessing you’ve got a style set on the element then…

Remove the style and you’ll see the additional options (or you can edit the style itself)

---

<div class="post-metadata">

**Author:** ![pedrodsabugueiro](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pedrodsabugueiro/32/202699_2.png) [@pedrodsabugueiro](https://forum.bubble.io/u/pedrodsabugueiro)\
**Post date:** [July 8, 2022, 4:18pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/9 "2022-07-08T16:18:43Z")

</div>

Oh that was it!  
Thank you Adam.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [September 16, 2022, 3:25pm UTC](https://forum.bubble.io/t/error-when-i-change-date-format/214631/10 "2022-09-16T15:25:53Z")

</div>

Closed on September 16, 2022, 3:25pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
