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

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

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