The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

need HELP, double to date format

DanielShen
5 - Atom

Hi

 

I went into a trouble for converting numbers (doulbe format) to date format in Alteryx.

 

e.g. numbers in excel 20230722, how to convert to date format as 22/07/2023  in Alteryx, thanks!

 

 

3 REPLIES 3
geraldo
13 - Pulsar

@DanielShen 

 


convert double date to string
date1 = ToString([DateExcel]
and then use the tool to convert to datetime with the custom option like print

datetime.JPG

Yoshiro_Fujimori
16 - Nebula
16 - Nebula

Hi @DanielShen ,

 

Another way is to use Formula tool as below.

 

Input & Output

InputOutput
2023072222/07/2023

 

Expression in Formula tool

DateTimeFormat(DateTimeParse(ToString([Input]),"%y%m%d"),"%d/%m/%Y")

 

DanielShen
5 - Atom

Hi all,

 

really appreciate your timley help. :)

Labels
Top Solution Authors