# Dateformat

**URL:** <https://community.homey.app/t/dateformat/101585>\
**Category:** Questions & Help\
**Created:** [January 18, 2024, 7:56pm UTC](https://community.homey.app/t/dateformat/101585 "2024-01-18T19:56:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fredrik\_Tornell](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fredrik_tornell/32/48574_2.png) [@Fredrik\_Tornell](https://community.homey.app/u/Fredrik_Tornell)\
**Post date:** [January 18, 2024, 7:56pm UTC](https://community.homey.app/t/dateformat/101585/1 "2024-01-18T19:56:23Z")

</div>

Hi team, then looking at the default datevariable its formated as DD-MM-YYYY. is it any way of changing this to YYYY-MM-DD? My location is Europe/Stockholm so its should be correct.

When looking at the default “variable” format:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/4/c48e579f9cf7dd92b9745d0dab5bd5080dec6cd6.png)

After setting that variable to my own variable:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a803bfaabd85268fb5f647462e0ac91580553a18.png)

I guess it should be possible to rewrite using logic app or something but would like to see if this is possible first. The thing is that I want to count how many days it has passed since a date back in 2022…

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 18, 2024, 11:30pm UTC](https://community.homey.app/t/dateformat/101585/2 "2024-01-18T23:30:21Z")

</div>

That should be possible with the Better Logic Library app

> [@\[APP\]\[Pro\] Better Logic Library - For Users](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876):
>
> BLL is Live! If you are an App Developer and want to know more about how to include this into your App or how to let your App support BLL coding, goto the [[APP][Pro] Better Logic Library - For Developers](https://community.homey.app/t/app-pro-better-logic-library-for-developers/71761) Forum Topic. Part of: [Better Logic Library - Just some better logic, variable and library management](https://community.homey.app/t/app-pro-better-logic-just-some-better-logic-and-variable-management/5568)Homey’s first real Library: Better Logic Library! The [Better Logic](https://homey.app/a/net.i-dev.betterlogic/) App has a new addition: A library and library management for other apps to consume. This Topic describes how users can use th…

You can format the date as you like:

> ![Screenshot from 2024-01-19 00-26-59](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/d/ad35c2717e4d7994ef78005f190db82aafcf04f0.png)

> ![Screenshot from 2024-01-19 00-26-19](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/d/ed287995e13b20d6ae10695a0565f158911f39bf.png)

Or just extract the day number:

 ![Screenshot from 2024-01-19 00-28-00](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/d/3dcf377e84b4860d7f0c4e7e9c0023ebeec7b2cd.png)

---

<div class="post-metadata">

**Author:** ![Fredrik\_Tornell](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fredrik_tornell/32/48574_2.png) [@Fredrik\_Tornell](https://community.homey.app/u/Fredrik_Tornell)\
**Post date:** [January 19, 2024, 9:50am UTC](https://community.homey.app/t/dateformat/101585/3 "2024-01-19T09:50:18Z")

</div>

Thanks that worked, but to be clear there is no way of changing the format in the system?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 19, 2024, 10:02am UTC](https://community.homey.app/t/dateformat/101585/4 "2024-01-19T10:02:42Z")

</div>

YW  
No it’s not user changeable. You can try requesting for this to make it user adjustable at support  
[https://homey.app/support](https://homey.app/support)
