# How to set time input format without user selection?

**URL:** <https://community.thunkable.com/t/how-to-set-time-input-format-without-user-selection/3437503>\
**Category:** Questions about Thunkable X\
**Tags:** time\_picker\
**Created:** [December 28, 2024, 1:53am UTC](https://community.thunkable.com/t/how-to-set-time-input-format-without-user-selection/3437503 "2024-12-28T01:53:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 28, 2024, 1:53am UTC](https://community.thunkable.com/t/how-to-set-time-input-format-without-user-selection/3437503/1 "2024-12-28T01:53:16Z")

</div>

When I set the format for a Time Input component, the format only seems to work if the user picks a _new_ time. If the user just leaves the time at the default/current value, the format is always HH:MM AM/PM. Using these blocks, if I don’t select a different time, the alert will not use the Hour:Minute (24h) format I’ve selected (ignore the date and direction related blocks):

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/1/f1c4f5596b1419362d9532e25e0e227da4118a5a.png)

Is there a way to fix this?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 30, 2024, 2:22pm UTC](https://community.thunkable.com/t/how-to-set-time-input-format-without-user-selection/3437503/2 "2024-12-30T14:22:27Z")

</div>

Hello @tatiang  
Please set the style here:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/a/7ac19142cee4d8baa424803295d98e052284acee.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 30, 2024, 3:13pm UTC](https://community.thunkable.com/t/how-to-set-time-input-format-without-user-selection/3437503/3 "2024-12-30T15:13:53Z")

</div>

Is it not possible to set the style using blocks? I’d like for the input to show as 12h format but the value to be stored as 24h format. So I was setting the style to Hour:Minute AM/PM in the component properties panel and then changing it to Hour:Minute (24h) after the user clicks a button as in the screenshot above.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 30, 2024, 3:28pm UTC](https://community.thunkable.com/t/how-to-set-time-input-format-without-user-selection/3437503/4 "2024-12-30T15:28:13Z")

</div>

It is possible to set the style using blocks but as you mentioned the user needs to select a time. You can solve this issue by using the following blocks:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/b/bb331c11ff999b693c7f1c33d656a7642f324420.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 30, 2025, 3:28pm UTC](https://community.thunkable.com/t/how-to-set-time-input-format-without-user-selection/3437503/5 "2025-03-30T15:28:57Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
