We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Possible help with Date time tool

AgiGovind
6 - Meteoroid

Hi All,

 

My input data containing a column of datetime, example: "07/31/2025 1:41PM"  which needs to be changed as "07/31/2025".
i tried with datetime tool (customize) %m/%d/%y %I:%m%p.  so in a new column its gives output for few of the cells,  but rest of them were blanks. Please advise, if customize was incorrect or is there is an alternative method to achieve the same output (example: 07/31/2025) ?

Thank you

 

4 REPLIES 4
stataltgee
9 - Comet

@AgiGovind  If you only need the date just use the "text to column" tool. Use \s as delimeter.

Gaurav_Dhama_
12 - Quasar

You can use DateTime Parse tool to convert the incoming datetime field to Alteryx standard DateTime field. Once you get that, add a select tool and change the data type to Date from DataTime. This will give you your desired value. Snip below.

 

Gaurav_Dhama__0-1754037756058.png

 

Parse Configuration:

 

 

MM-dd-yyyy HH:mm

 

Gaurav_Dhama__1-1754037792457.png

 

Select tool config:

Gaurav_Dhama__2-1754037818546.png

 

 

davidskaife
14 - Magnetar

Hi @AgiGovind 

 

You were close, you need to uppercase the code for Year, and for Minute - use a Formula tool and apply this code to first change it to the ISO Standard Format using DateTimeParse, then wrap it in a DateTimeFormat to change it to just the specific date format you require:

 

DateTimeFormat(DateTimeParse([Date],'%m/%d/%Y %I:%M%p'),'%m/%d/%Y')

DavidSkaife_0-1754040283262.png

 

 

aatalai
15 - Aurora

Similar to @davidskaife used a formula tool, but trimmed the string then used datetime parse

 

DateTimeParse(left([Field1],10),"%m/%d/%Y")

 

Screenshot 2025-08-01 110623.png

Labels
Top Solution Authors