Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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
15 - Aurora
15 - Aurora

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