Convert to Date/Time
Command description
Converts text to a datetime object. When Use Custom Format is enabled, provide a format such as yyyy-MM-dd HH:mm:ss.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Text | str | Date/time text to convert |
| Use Custom Format | bool | Whether to use custom time format to parse text |
| Time Format | str | Only required if using custom format is True, e.g. yyyy-MM-dd HH:mm:ss |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Date/Time | datetime | Converted datetime object |
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
- Text must be a string; do not generate "time format" when custom formatting is not enabled.
- The time format must be filled in when enabling custom formats; note that MM is the month and mm is the minute.