Help with now() template

I have setup an automation to send a notification to my phone. in the message I am using now() to print the current time. The result is like this: 2019-09-26 07:58:30.996+0200. How can I format the output to my liking? Mostly trimming off the time starting with the seconds.

How about this?
now().strftime('%Y-%m-%d %H:%M:%S')

That’s perfect. Thanks!

1 Like