# Days in current month

**URL:** <https://community.homey.app/t/days-in-current-month/75007>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [January 13, 2023, 12:04am UTC](https://community.homey.app/t/days-in-current-month/75007 "2023-01-13T00:04:28Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Hamster](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hamster/32/16580_2.png) [@Hamster](https://community.homey.app/u/Hamster)\
**Post date:** [January 22, 2023, 8:12am UTC](https://community.homey.app/t/days-in-current-month/75007/15 "2023-01-22T08:12:18Z")

</div>

> [@robertklep](#):
>
> HomeyScript should just provide a method of returning the _local_ datetime, as opposed to a fairly useless UTC datetime.

But HomeyScript can do that, see this example

> [@Actuele tijd weergeven inclusief secondes](https://community.homey.app/t/actuele-tijd-weergeven-inclusief-secondes/75247/2):
>
> Probeer dit script eens: return getCurrentTime("nl-NL","Europe/Amsterdam"); function getCurrentTime(locale, timezone){ let date = new Date(); return date.toLocaleString(locale,{timeZone: timezone }); //return date.toLocaleTimeString(locale,{timeZone: timezone }); //return date.toLocaleDateString(locale,{timeZone: timezone }); } Ik heb het script nog even aangepast. Hij zal nu “datum+tijd” teruggeven, maar je kan ook alleen de tijd of alleen de datum ter…

---

_[View the full topic](https://community.homey.app/t/days-in-current-month/75007)._
