Convert Date/Time to Text
Command description
Convert a date and time to text in the specified format. When Date/Time is omitted, the current system date and time is used.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Date/Time | datetime or str | Date/time value or parseable date/time text, such as 2026-06-20 12:30:00 or 2026/06/20. Uses the current date and time when omitted. |
| Time Format | str | The time format of the output text, such as yyyy-MM-dd HH:mm:ss |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Text | str | Converted datetime text |
Supported date and time text formats
When datetime parameters use text, the following formats are supported:
| Format | Example |
|---|---|
| yyyy-MM-dd HH:mm:ss | 2026-06-20 12:30:00 |
| yyyy/MM/dd HH:mm:ss | 2026/06/20 12:30:00 |
| yyyy-MM-dd HH:mm | 2026-06-20 12:30 |
| yyyy/MM/dd HH:mm | 2026/06/20 12:30 |
| yyyy-MM-dd | 2026-06-20 |
| yyyy/MM/dd | 2026/06/20 |
| ISO format | 2026-06-20T12:30:00, 2026-06-20T12:30:00.123456, 2026-06-20T12:30:00+08:00 |
For AI-generated workflows, prefer yyyy-MM-dd HH:mm:ss and avoid unsupported formats such as "June 20, 2026".
Supported time format placeholders
Custom time formats and output time formats support the following placeholders:
| placeholder | meaning | Example |
|---|---|---|
| yyyy or YYYY | 4 digit year | 2026 |
| MM | 2 digit month | 06 |
| dd or DD | 2 digit date | 20 |
| HH or hh | 24-hour clock | 12 |
| mm | 2 digit minutes | 30 |
| ss | 2 digit seconds | 00 |
Commonly used formats: yyyy-MM-dd HH:mm:ss, yyyy/MM/dd HH:mm:ss, yyyy-MM-dd.
AI Workflow Generation Notes
- The date and time can be left blank. When left blank, None will be passed at runtime and the current time will be used.
- The date and time can be datetime or parsable date and time text, such as
2026-06-20 12:30:00,2026/06/20; the time format is str.