# {{Now()}} in flows?

**URL:** <https://community.homey.app/t/now-in-flows/71678>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [November 4, 2022, 2:39pm UTC](https://community.homey.app/t/now-in-flows/71678 "2022-11-04T14:39:04Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pat\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pat_m/32/56295_2.png) [@Pat\_M](https://community.homey.app/u/Pat_M)\
**Post date:** [November 4, 2022, 2:39pm UTC](https://community.homey.app/t/now-in-flows/71678/1 "2022-11-04T14:39:04Z")

</div>

Hi,

I’m trying to log (Simple LOG) some text and the current date and time. Using Homey’s own date-variable is not an option as it is formatted in a way I don’t like.

I’ve tried things like {{date.Now()}} but it will only output {{date.Now()}}.

Thanks!

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [November 4, 2022, 3:23pm UTC](https://community.homey.app/t/now-in-flows/71678/2 "2022-11-04T15:23:31Z")

</div>

> [@Pat\_M](#):
>
> Using Homey’s own date-variable is not an option as it is formatted in a way I don’t like.

Create a Tag in a Homey script where you can format your time just the way you want.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 4, 2022, 3:27pm UTC](https://community.homey.app/t/now-in-flows/71678/3 "2022-11-04T15:27:21Z")

</div>

> [@Dijker](#):
>
> Create a Tag in a Homey script where you can format your time just the way you want.

Don’t forget to explain how to get the _local_ time in Homeyscript 😜

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 4, 2022, 4:21pm UTC](https://community.homey.app/t/now-in-flows/71678/4 "2022-11-04T16:21:00Z")

</div>

I am currently creating this in better logic.  
Follow the ftp client topic.

The local time issue is already solved in the new BetterLogic sdk3 version.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [November 4, 2022, 4:26pm UTC](https://community.homey.app/t/now-in-flows/71678/5 "2022-11-04T16:26:28Z")

</div>

> [@Pat\_M](#):
>
> log (Simple LOG) some text and the current date and time.

This is default available in Simple Log, simply press the Calendar and the Clock icon at the top of the page

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 4, 2022, 4:49pm UTC](https://community.homey.app/t/now-in-flows/71678/6 "2022-11-04T16:49:56Z")

</div>

I needed customisable timestamp tokens for saving (image)files through the ftp client app.  
And BL already has functionality for this build in, so i wanted to extend on that.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 4, 2022, 11:38pm UTC](https://community.homey.app/t/now-in-flows/71678/7 "2022-11-04T23:38:31Z")

</div>

[[APP][Pro] Better logic - Just some better logic and variable management - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-just-some-better-logic-and-variable-management/5568/209)

> [@\[APP\]\[Pro\] 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/209):
>
> New in test: Get a formatted stamp (local time): [image] [image] And you can format it yourself just like you want it, giving the results during the typing: [image]

---

<div class="post-metadata">

**Author:** ![Pat\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pat_m/32/56295_2.png) [@Pat\_M](https://community.homey.app/u/Pat_M)\
**Post date:** [November 6, 2022, 2:32pm UTC](https://community.homey.app/t/now-in-flows/71678/8 "2022-11-06T14:32:36Z")

</div>

Thanks - Yes, I could do that but I’m trying to use scripting to a minimum! 🙂

---

<div class="post-metadata">

**Author:** ![Pat\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pat_m/32/56295_2.png) [@Pat\_M](https://community.homey.app/u/Pat_M)\
**Post date:** [November 6, 2022, 2:54pm UTC](https://community.homey.app/t/now-in-flows/71678/9 "2022-11-06T14:54:35Z")

</div>

Thanks, I’m a bit confused. I created a Better Logic (string) variable (MyFormatDate).How do I update it with the “yyyy-mm-dd hh:mm:ss” format?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 6, 2022, 3:07pm UTC](https://community.homey.app/t/now-in-flows/71678/10 "2022-11-06T15:07:37Z")

</div>

Hey Pat,

You cannot yet put this datetime into a variable directly.  
I’m getting to that, working on it, but implementing it in an awesome takes some time.

What i did is create a flowcard that returns a tag/token.  
Just run the card with the format you want (Months are capitol MM) and it will return a token:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/6/b6edd50f8716cf63ea9f3b10994a13b24e29629a.png)

More coming, but this was the fastest way to implement something and i am sure people will use this card (i will), so i started with this one.  
And it’s handy to not need a variable, you can use this card in the scope of the flow.

But, more (ways) coming to manage this into variables.

And to get “yyyy-MM-dd hh:mm:ss”, just type it in the field (and then select it from the top of the list).

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 6, 2022, 3:21pm UTC](https://community.homey.app/t/now-in-flows/71678/11 "2022-11-06T15:21:03Z")

</div>

Or try `"d MMM 'yy"`  
But that’s not what you asked, it’s just cool you can 😉

---

<div class="post-metadata">

**Author:** ![Pat\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pat_m/32/56295_2.png) [@Pat\_M](https://community.homey.app/u/Pat_M)\
**Post date:** [November 6, 2022, 3:56pm UTC](https://community.homey.app/t/now-in-flows/71678/12 "2022-11-06T15:56:43Z")

</div>

Many thanks! Great work! 🙂

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 6, 2022, 4:07pm UTC](https://community.homey.app/t/now-in-flows/71678/13 "2022-11-06T16:07:53Z")

</div>

You’re welcome and thanks!
