How to get Current Date & Time in The Format "2022-12-22 01:58"

Hi.

I want to place the current date & time to use in subsequent Nodes. I need the Format to be exactly this format “2022-12-22 01:58” (my timezone is GMT+3)

I’ve read about using {{now}} but I can’t quite figure out a way to get it to work.

Any ideas?

After some digging around in the community I’ve managed to get a solution

I’ve placed this as an expression inside a Set Node

{{ $now.setZone(‘UTC+3’).toFormat(‘yyyy-MM-dd’) }}T{{ $now.setZone(‘UTC+3’).toFormat(‘HH:mm’) }}

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.