# Datetime picker problems (bugs?)

**URL:** <https://community.weweb.io/t/datetime-picker-problems-bugs/5104>\
**Category:** Ask us anything\
**Created:** [October 28, 2023, 8:15pm UTC](https://community.weweb.io/t/datetime-picker-problems-bugs/5104 "2023-10-28T20:15:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominic](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dominic/32/5645_2.png) [@Dominic](https://community.weweb.io/u/Dominic)\
**Post date:** [October 28, 2023, 8:15pm UTC](https://community.weweb.io/t/datetime-picker-problems-bugs/5104/1 "2023-10-28T20:15:18Z")

</div>

Hi, DateTime picker does not show initial value (Date or TIme) in any other mode than Datetime. When you choose any other mode the text “Select a date” is displayed in a placeholder as an initial value. It is a bug or desired behaviour?

The other problem is that I have no idea how to change this text or translate it.

The third problem with this input control is that after changing language the picker in the dropdown shows correct months and days, but formatted date (DD MMMM YYYY) always show English names for months regardless of set language.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [October 28, 2023, 8:36pm UTC](https://community.weweb.io/t/datetime-picker-problems-bugs/5104/2 "2023-10-28T20:36:01Z")

</div>

Are you using init values from some of your data?

---

<div class="post-metadata">

**Author:** ![Dominic](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dominic/32/5645_2.png) [@Dominic](https://community.weweb.io/u/Dominic)\
**Post date:** [October 28, 2023, 8:51pm UTC](https://community.weweb.io/t/datetime-picker-problems-bugs/5104/3 "2023-10-28T20:51:06Z")

</div>

The behaviour is exactly the same when I use data from a variable, collection or just date() as a formula.  
Just now I use Datetime and format string to show only date and it is working fine. Looks for me as a bug anyhow.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [October 28, 2023, 9:15pm UTC](https://community.weweb.io/t/datetime-picker-problems-bugs/5104/4 "2023-10-28T21:15:45Z")

</div>

I’d need to see some examples

---

<div class="post-metadata">

**Author:** ![Dominic](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dominic/32/5645_2.png) [@Dominic](https://community.weweb.io/u/Dominic)\
**Post date:** [October 28, 2023, 9:33pm UTC](https://community.weweb.io/t/datetime-picker-problems-bugs/5104/5 "2023-10-28T21:33:05Z")

</div>

Here you are 🙂

Time mode set to Datetime:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/d85ee60652b27c9d97131ffdfb3baa36d727d8a6.png)

Exactly the same but mode changed to Date (the only modification).

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a7c2f5bed7f88aa5971b1125082ac77dbed46df4.png)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [October 28, 2023, 9:39pm UTC](https://community.weweb.io/t/datetime-picker-problems-bugs/5104/6 "2023-10-28T21:39:41Z")

</div>

for your second case (Date mode only), try doing this:

`[sign_date - value].split("T")[0]`

My hypothesis is, that you’re getting your data with a timestamp (the stuff after T), and this might mess up the expected input of the date picker (expects a date **only** , in the date mode). By splitting your string at the T and using the 0 (first) value, from the resulting array, you get your “YYYY-MM-DD” string, which should then work.

---

<div class="post-metadata">

**Author:** ![Dominic](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dominic/32/5645_2.png) [@Dominic](https://community.weweb.io/u/Dominic)\
**Post date:** [October 28, 2023, 10:03pm UTC](https://community.weweb.io/t/datetime-picker-problems-bugs/5104/7 "2023-10-28T22:03:13Z")

</div>

Thank you @Broberto!! It is working as expected now!

Didin’t think that way ☹ and there is not a word in the documentation.
