6.2 DateTime Tool

Key Takeaways

  • The DateTime tool converts data between string representations and standardized Alteryx Date/DateTime formats (ISO-8601: yyyy-MM-dd or yyyy-MM-dd hh:mm:ss).
  • The tool provides two operational modes: (1) String to Date/DateTime format (parsing messy text into standard dates) and (2) Date/DateTime format to string (converting standard dates into custom human-readable display strings).
  • Pattern-style specifiers in the DateTime tool are case-sensitive for date parts - uppercase 'MM' is month (01-12) and lowercase 'mm' is minutes (00-59) - but 'HH' and 'hh' are equivalent and both mean the 24-hour clock; the 12-hour distinction exists only in the percent-style '%H' versus '%I' used by the Formula functions.
  • When converting a string to Date/DateTime, invalid or unparseable date strings result in a Null value and log a conversion warning in the Results window rather than crashing the workflow.
  • Alteryx native Date and DateTime data types can ONLY store values in ISO-8601 format; any custom formatted date (e.g., 'MM/dd/yyyy') must be stored in a String data type.
Last updated: August 2026

Quick Answer: The DateTime tool (Parse palette) transforms temporal data between unstructured text strings and Alteryx ISO-8601 standardized Date/DateTime formats (yyyy-MM-dd and yyyy-MM-dd hh:mm:ss), or vice versa. It operates in two modes: (1) String to Date/DateTime format (creates a native Date/DateTime field, converting invalid strings to Null with a log warning) and (2) Date/DateTime format to string (creates a custom formatted text string). Format specifiers are strictly case-sensitive: uppercase MM is Month, lowercase mm is Minute; uppercase HH is 24-hour, lowercase hh is 12-hour.

Date and time standardization is critical for accurate sorting, filtering, time-series calculations, and joins. Because source systems export dates in hundreds of regional and arbitrary text formats (e.g., "04/15/2026", "15-Apr-26", "April 15, 2026"), Alteryx enforces a strict internal storage standard: the ISO-8601 standard.


Tool Architecture & Standard Date Formats

The DateTime tool features 1 Input anchor (I) and 1 Output anchor (O). It does not modify incoming columns in place; instead, it appends a new output column containing the converted value.

+-----------------------------------------------------------------------------+
|                     ALTERYX NATIVE TEMPORAL DATA TYPES                      |
+-----------------------------------------------------------------------------+
|  Data Type   Length    Strict ISO Format           Example                  |
|  ---------   -------   ------------------------    -----------------------  |
|  Date        10 chars  yyyy-MM-dd                  2026-08-28               |
|  DateTime    19 chars  yyyy-MM-dd hh:mm:ss         2026-08-28 15:30:00      |
|  Time         8 chars  hh:mm:ss                    15:30:00                 |
+-----------------------------------------------------------------------------+

Core Principle: In Alteryx Designer, any field assigned the Date data type must follow the yyyy-MM-dd format. If you format a date as MM/dd/yyyy or dd-Mon-yy, that field cannot have a Date data type; it must be stored as a String (V_WString, String, etc.).


The Two Operational Modes

+-----------------------------------------------------------------------------+
|                         DATETIME TOOL CONFIGURATION                         |
+-----------------------------------------------------------------------------+
|  Select the format convert mode:                                            |
|  (*) String to Date/DateTime format                                         |
|  ( ) Date/DateTime format to string                                         |
|                                                                             |
|  1. Select the string field to convert:      [ Transaction_Date      |v]    |
|  2. Specify the new column name:             [ DateTime_Out            ]    |
|  3. Select the format that matches the incoming string field:               |
|     +--------------------------------------------------------------------+  |
|     | Custom                                                             |  |
|     | MM/dd/yyyy                                                         |  |
|     | yyyy-MM-dd                                                         |  |
|     | dd-Mon-yy                                                          |  |
|     | Month dd, yyyy                                                     |  |
|     +--------------------------------------------------------------------+  |
|     Custom Format: [ MM/dd/yyyy                                ]            |
|     Language:      [ English                                 |v]            |
+-----------------------------------------------------------------------------+

Mode 1: String to Date/DateTime Format (Parsing)

  • Input: A string field containing text representations of dates (e.g., "10/31/2026").
  • Output: A newly created column with data type Date (yyyy-MM-dd) or DateTime (yyyy-MM-dd hh:mm:ss).
  • Mechanism: You tell Alteryx what format the incoming text string currently looks like so the engine can parse its components and convert it into standard ISO-8601.
  • Error Behavior: If an incoming string cannot be parsed (e.g., "Invalid Date", "2026-02-30", or mismatched format pattern), Alteryx writes a Null value to the output field and logs a conversion error/warning in the Results Window messages tab. The workflow continues executing without crashing.

Mode 2: Date/DateTime Format to String (Formatting)

  • Input: A native Date or DateTime field formatted in standard ISO-8601.
  • Output: A new String column containing custom formatted text (e.g., "Sunday, October 31, 2026" or "31-Oct-26").
  • Mechanism: You specify the desired target layout for downstream reporting, presentation dashboards, or external systems requiring non-standard date strings.

Case-Sensitive Format Specifiers Master Table

Understanding format specifier tokens is essential for the Core exam. The single most common mistake is confusing upper and lower case letters.

SpecifierDefinitionExample / Output
yyyy4-digit year2026
yy2-digit year (00–99)26
MM2-digit month with leading zero (01–12)04 (April), 12 (December)
Mon3-letter abbreviated month nameJan, Apr, Dec
MonthFull month nameJanuary, April, December
dd2-digit day of the month with leading zero (01–31)05, 28
dDay of the month without leading zero (1–31)5, 28
DayFull name of the day of the weekMonday, Friday
dy3-letter abbreviated day of the weekMon, Fri
HH or hhHours with leading zero, 24-hour clock — the two are equivalent in this style09, 15, 23
HHour with no leading zero, 24-hour clock9, 15, 23
mm2-digit minutes with leading zero (00–59)05, 45
ss2-digit seconds with leading zero (00–59)00, 59
ffffSub-second precision; the count of f characters sets the digits (fff = milliseconds)123
+-----------------------------------------------------------------------------+
|                 CRITICAL CASE-SENSITIVITY DISTINCTIONS                      |
+-----------------------------------------------------------------------------+
|   MM (Uppercase) = MONTH (01 - 12)    vs.   mm (Lowercase) = MINUTE (00 - 59)|
|   HH and hh are the SAME here: both mean the 24-HOUR clock (00 - 23)          |
|   DD is INVALID (Must use dd)         vs.   YY is INVALID (Must use yyyy/yy)|
+-----------------------------------------------------------------------------+

Exam Trap — HH and hh Are Not Opposites Here. In the DateTime tool's pattern-style format (dd, MM, yyyy), Alteryx documents HH or hh as "hours, with leading zeros for single-digit hours (24-hour clock)" — they behave identically, and pattern style has no English AM/PM designator at all. The 12-hour distinction exists only in the percent-style specifiers used by the DateTimeParse and DateTimeFormat functions, where %H is the 24-hour hour, %I is the 12-hour hour, and %p supplies AM or PM. Candidates who transfer the %H/%I rule onto HH/hh get these items wrong.

Exam Trap — Never Mix the Two Styles. The DateTime tool's Custom option accepts either pattern-style specifiers (dd, MM, yyyy) or percent-style specifiers (%d, %m, %Y), but Alteryx explicitly warns that you cannot mix them in one format. %B dd %Y is invalid; write it as Month dd yyyy or as %B %d %Y.


Custom Format Strings & Common Presets

When incoming strings do not match one of the built-in preset formats in the DateTime configuration window, selecting Custom allows you to construct arbitrary format patterns matching separators, punctuation, and layout:

+-----------------------------------------------------------------------------+
|                     CUSTOM FORMAT PARSING EXAMPLES                          |
+-----------------------------------------------------------------------------+
|  Incoming Raw Text String         Custom Format Pattern       Parsed ISO Date
|  ------------------------         ---------------------       ---------------
|  "08/28/2026"                     MM/dd/yyyy                  2026-08-28     
|  "28-Aug-2026"                    dd-Mon-yyyy                 2026-08-28     
|  "August 28, 2026"                Month dd, yyyy              2026-08-28     
|  "20260828"                       yyyyMMdd                    2026-08-28     
|  "28.08.26"                       dd.MM.yy                    2026-08-28     
|  "2026-08-28 15:30"               yyyy-MM-dd HH:mm             2026-08-28 15:30:00
+-----------------------------------------------------------------------------+

Exam Tip on Punctuation: Every literal separator, space, comma, dot, or hyphen present in the raw text string must be matched identically in the custom format pattern. If the raw string has a space after a comma ("August 28, 2026"), the format pattern must also include the space (Month dd, yyyy). Omitting the space causes the parse to fail and output Null.


Language Localization Settings

At the bottom of the DateTime Configuration Window, the Language drop-down allows you to specify the localization dictionary used for parsing and formatting month and day names:

  • Supported Languages: English, French, German, Spanish, Portuguese, Italian, Japanese, Simplified Chinese, and more.
  • Example: An incoming string "14-Février-2026" parsed with Language set to French and format dd-Month-yyyy successfully converts to 2026-02-14. If parsed with Language set to English, the parse fails and outputs Null.

High-Yield Exam Traps & Gotchas

  • The Minute vs. Month Inversion Trap: Specifying yyyy-mm-dd instead of yyyy-MM-dd causes Alteryx to interpret the month digits as minutes! This is the most frequently tested syntax trap on the Core exam.
  • Invalid Dates Produce Nulls (Not Errors): An unparseable date does not terminate the workflow or throw a fatal error. It generates a Null in the output field and logs a yellow warning in the Results log. downstream tools that do not handle Nulls may behave unexpectedly.
  • 2-Digit Year Pivoting: When parsing two-digit years (yy), Alteryx uses a sliding century window based on the current system date (typically spanning from 1900 to 2099). For unambiguous long-term historical or future data, always use 4-digit years (yyyy).
  • DateTime vs. Formula Functions: While the DateTime tool provides a point-and-click GUI for conversion, identical transformations can be accomplished in a Formula tool using functions like DateTimeParse([Field], "%m/%d/%Y") and DateTimeFormat([Field], "%B %d, %Y").
Loading diagram...
Alteryx Date Parsing, Transformation, and Formatting Lifecycle
Test Your Knowledge

A developer needs to parse an incoming text string formatted as '04/15/2026' into a standard Alteryx Date field using the DateTime tool. Which custom format string must be specified?

A
B
C
D
Test Your Knowledge

What happens when the DateTime tool encounters a string value that does not match the configured date format pattern (for example, parsing 'N/A' or '2026-02-31')?

A
B
C
D
Test Your Knowledge

Which of the following represents the ONLY acceptable internal data format for a field assigned the Date data type in Alteryx?

A
B
C
D
Test Your Knowledge

In the DateTime tool's pattern-style custom format (dd, MM, yyyy), what do the specifiers 'HH' and 'hh' produce?

A
B
C
D