Get Date and Time String
- Updated2023-02-17
- 2 minute(s) read
Get Date and Time String
Converts a timestamp value or a number of seconds to a date and time string in the time zone configured for the computer.
This node converts a numeric input into a date and time string by interpreting it as the time-zone-independent number of seconds that have elapsed since 12:00 a.m. on January 1, 1904, Universal Time.

Inputs/Outputs

date format
Appearance of the date string.
Date formats vary with your system configuration. To use a different date format, use Format Date and Time String.
short |
Example: 1/21/94 |
long |
Example: Friday, January 21, 1994 |
abbreviated |
Example: Fri, Jan 21, 1994 |
Default value: short

timestamp
The time that you want to convert.
The year in this timestamp must be between 1600 and 3000.
If you wire a numeric value to this input, the node interprets the number as the time-zone-independent number of seconds that have elapsed since 12:00 a.m. on January 1, 1904, Universal Time [01-01-1904 00:00:00]. The node interprets a negative number as the number of seconds before this time.
Default value: The current date and time

show seconds?
Boolean that controls the display of seconds in the time string.
True | Includes seconds in time string |
False | Does not include seconds in time string |
Default value: False

date string
String of the date from timestamp formatted according to the specified date format.

time string
String of the time from timestamp formatted according to the configured time zone for your computer.