How can I use now() in a expression

Hi dears

I want to set a variable to now() time also I want to format it to special ones.
can anyone help me please?

You can simply use any kind of JavaScript in the curly brackets. So depending what you need you could do this:

{{new Date().getTime()}}
// Output: 1573041058024
{{new Date().toISOString()}}
// Output: 2019-11-06T11:50:58.025Z
{{new Date().toString()}}
// Output: Wed Nov 06 2019 12:50:58 GMT+0100 (Central European Standard Time)
{{new Date().toLocaleDateString()}}
// Output: 11/6/2019

Dear @jan
For my variable I set :face_with_monocle:{{new Date().toLocaleString(“sv-SE”, {timeZone: “…”})}}
and it return:
2019-11-06 23:32:11

above returned is my goal.
But unfortunately in json it return something else (Below image). Why?

It looks like node.js gives a different output than the browser. It talkes about it here:

When I find some time (can sadly not say when) I will check it out and see if any of the proposed solutions work here.