Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Date and Time format

Dom
8 - Asteroid

Is this date and time format possible mm/dd/yyyyThh:mm:ss? 

                                                               

 

3 REPLIES 3
michael_treadwell
ACE Emeritus
ACE Emeritus

If you are trying to read dates formatted as mm/dd/yyyyThh:mm:ss into Alteryx you will first need to format the string to remove the 'T' and use the DateTime tool to convert from String to DateTime field.

 

If you have a DateTime field and you want to convert it to the format mm/dd/yyyyThh:mm:ss you will use the DATETIMEFORMAT() function

 

DATETIMEFORMAT([datetime], '%m/%d/%YT%H:%M:%S')

 

jdunkerley79
ACE Emeritus
ACE Emeritus

If you want to read these dates in, I would use a RegEx tool to shuffle the parts and then a select to change type:

DateTimeRegex.jpg

 

Attached flow of what I mean

Dom
8 - Asteroid

Thank you, this worked!Smiley Very Happysmileyvery-happy:

Labels
Top Solution Authors