Format: Optional. Specifies the output format of the datetime. Choices include:
Year-Month-Day
Day-Month-Year
Month-Day-Year
Hour:Minute:Second
Year-Month-Day Hour:Minute:Second
(default)Day-Month-Year Hour:Minute:Second
Month-Day-Year Hour:Minute:Second
Custom
- allows defining a custom formatTimezone: Optional. The timezone in which the current datetime will be outputted. If not provided, it defaults to UTC
. All available timezones are selectable.
When the format
is set to Custom
, you can define your own pattern for the date and time using the custom_format
field. This pattern uses placeholders to represent different parts of the date and time. Here are some common placeholders you can use:
Placeholder | Description |
---|---|
%d | Day of the month, for example 01 for the first day of the month. |
%m | Month of the year, for example 11 for November. |
%Y | The full year, for example 2022. |
%H | Hour of the day in 24-hour format, for example 13 for 1 PM. |
%M | Minute of the hour, for example 30 for half past the hour. |
%S | Second of the minute, for example 45 for 45 seconds past the minute. |
%b | Abbreviated month name, for example ‘Nov’ for November. |
%A | Full weekday name, for example ‘Monday’. |
%I | Hour in 12-hour format, for example 01 for 1 o’clock. |
%Z | Timezone name, for example ‘UTC’. |
For example, if you want the date and time to be displayed as Day/Month/Year Hour:Minute:Second
, you would use the pattern '%d/%m/%Y %H:%M:%S'
.
For a full and complete list of formattinig options, see the table in this documentation
The Current Datetime node provides the current date and time as output. The format of this output can be customized by selecting one of the given options or by specifying a custom pattern. It is also possible to choose the timezone in which the current datetime will be represented.
This is particularly useful when you want to timestamp data, log events with the time of occurrence, or when you need to display the current time to users in different parts of the world in a consistent format.
Use the Current Datetime node when you need to:
It’s an essential tool for any process where time tracking is necessary or where actions are time-dependent.