Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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