# Wrong current date format

**URL:** <https://community.thunkable.com/t/wrong-current-date-format/242269>\
**Category:** Questions about Thunkable X\
**Created:** [September 24, 2019, 4:41pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269 "2019-09-24T16:41:58Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![castrejon.alejandrom](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@castrejon.alejandrom](https://community.thunkable.com/u/castrejon.alejandrom)\
**Post date:** [September 24, 2019, 4:41pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/1 "2019-09-24T16:41:58Z")

</div>

When I trying to get the current date with the format **yyy-mm-dd** I get a mixed result :

yyyy-mm/dd/yy-mm/dd/yy

to show that I make a empty form with one button and when I make click show me a alert box with the current date  
Its that a bug or a my error?

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

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

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

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 24, 2019, 5:28pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/2 "2019-09-24T17:28:06Z")

</div>

Hey @castrejon.alejandrom 👋

It looks like you might have discovered a bug - thanks for letting us know (but sorry fo the inconvenience)

I’ve flagged this with the team and hopefully we’ll be able to get this fixed soon.

In the meantime can you tell me a bit more about what you’re trying to do and I’ll to my best to help you figure out a work-around for now.

Thanks!

---

<div class="post-metadata">

**Author:** ![castrejon.alejandrom](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@castrejon.alejandrom](https://community.thunkable.com/u/castrejon.alejandrom)\
**Post date:** [September 24, 2019, 5:35pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/3 "2019-09-24T17:35:00Z")

</div>

I do it in this way :

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

But I need to get the same date format en other screen, so I will wait to reduce the block and keep simply the solution,

This app will be for a Non-profit organization so i’m making the core and let the final user make future changes, of course with my support and the thunkable community.

---

<div class="post-metadata">

**Author:** ![castrejon.alejandrom](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@castrejon.alejandrom](https://community.thunkable.com/u/castrejon.alejandrom)\
**Post date:** [September 24, 2019, 6:35pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/4 "2019-09-24T18:35:09Z")

</div>

Can you notify me when the bug be fixed please?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 24, 2019, 7:42pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/5 "2019-09-24T19:42:52Z")

</div>

What format are you trying to get? yyyy-mm-dd?

> [@castrejon.alejandrom](#):
>
> Can you notify me when the bug be fixed please?

Absolutely!

---

<div class="post-metadata">

**Author:** ![castrejon.alejandrom](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@castrejon.alejandrom](https://community.thunkable.com/u/castrejon.alejandrom)\
**Post date:** [September 24, 2019, 8:15pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/6 "2019-09-24T20:15:27Z")

</div>

Yes yyyy-mm-dd

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 24, 2019, 8:59pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/7 "2019-09-24T20:59:00Z")

</div>

Thanks - so is this approach working for your?

> [@castrejon.alejandrom](#):
>
> I do it in this way :
> 
> ![image.png](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/5/e5828c7d3eb7d230e03d7287f4aa7bb69cbb7bb9.png)

(I think there might be too many characters?)

---

<div class="post-metadata">

**Author:** ![castrejon.alejandrom](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@castrejon.alejandrom](https://community.thunkable.com/u/castrejon.alejandrom)\
**Post date:** [September 24, 2019, 11:14pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/8 "2019-09-24T23:14:56Z")

</div>

Sorry, you are right, I was thinking in the way of I made in a programming lenguaje, the right solution its:

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

to get this:

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

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [September 25, 2019, 12:02am UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/9 "2019-09-25T00:02:36Z")

</div>

Sorry, Alejandro. It turns out that that block was not meant to be released. As you discovered, it was not working properly. In our next release, that block (and some other, recently released, time/date blocks) will be removed. They will be re-released once they are working properly.

-Mark

---

<div class="post-metadata">

**Author:** ![castrejon.alejandrom](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@castrejon.alejandrom](https://community.thunkable.com/u/castrejon.alejandrom)\
**Post date:** [September 25, 2019, 12:18am UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/10 "2019-09-25T00:18:15Z")

</div>

So, will be not way to get the current date and time from the device?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 25, 2019, 9:37am UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/11 "2019-09-25T09:37:11Z")

</div>

@castrejon.alejandrom, no it’s just a few of the formatting blocks that are being removed.

You will still be able to make your own custom date formatter with something like this:

![diy_date_format](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/a/2aef4d7edd528e79ce1f81ada992e2429b13e47f.png)

---

<div class="post-metadata">

**Author:** ![castrejon.alejandrom](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@castrejon.alejandrom](https://community.thunkable.com/u/castrejon.alejandrom)\
**Post date:** [September 25, 2019, 2:49pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/12 "2019-09-25T14:49:01Z")

</div>

the current day of the month will be on 2 char (padiing zeros at left) or 1 char for days before the 10th and 2 char after that?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 25, 2019, 3:26pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/13 "2019-09-25T15:26:04Z")

</div>

Good question!

So, the default is 1, 2, 3 etc for the months rather than 01, 02, 03 …

However, with a small bit of extra logic you can get yyyy-mm-dd format for all 12 months of the year:

 ![custom_dateformat](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/d/3df07e47de1c2d5cdb620490d843c7a8b23dd6ae.png)

---

<div class="post-metadata">

**Author:** ![castrejon.alejandrom](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@castrejon.alejandrom](https://community.thunkable.com/u/castrejon.alejandrom)\
**Post date:** [September 25, 2019, 3:29pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/14 "2019-09-25T15:29:47Z")

</div>

Ok, i will make some test, sane at current hour an I feed you back.

If you guys need a beta tester I will be happy to help, like developer I know that is a mistake to test what I do.

Best regards,  
Alejandro Castrejon

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [September 25, 2019, 3:37pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/15 "2019-09-25T15:37:46Z")

</div>

> [@castrejon.alejandrom](#):
>
> If you guys need a beta tester I will be happy to help, like developer I know that is a mistake to test what I do.

Great, @castrejon.alejandrom ! 👍

* * *

I think you should apply for **Community Testers** group 😉

# Apply [here](http://community.thunkable.com/g/Community_Testers)…

* * *

We’ll be glad to see you as a beta-tester! 😄

**Thanks! 😊**

---

<div class="post-metadata">

**Author:** ![castrejon.alejandrom](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@castrejon.alejandrom](https://community.thunkable.com/u/castrejon.alejandrom)\
**Post date:** [October 3, 2019, 6:51pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/16 "2019-10-03T18:51:54Z")

</div>

the Current 24-hour clock (0:00 - 23:59) block has a bug too

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

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

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [October 3, 2019, 7:28pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/17 "2019-10-03T19:28:37Z")

</div>

Thanks. As I mentioned a few days ago:

> [@Mark](#):
>
> Sorry, Alejandro. It turns out that that block was not meant to be released. As you discovered, it was not working properly. In our next release, that block (and some other, recently released, time/date blocks) will be removed. They will be re-released once they are working properly.

---

<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:** [November 8, 2024, 12:08pm UTC](https://community.thunkable.com/t/wrong-current-date-format/242269/18 "2024-11-08T12:08:47Z")

</div>


