In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

DOUBLE TO DATE

AmAm
7 - Meteor

Hi, 

 

I have a date in excel but in Alteryx it switch to double. I want to keep it a date.

 

    In Alteryx                                     What I am trying to get

                                            (this is how it is in the excel file when I input it)

AmAm_1-1652963142833.png              AmAm_0-1652963039163.png 

 

 

 

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

Try using the following and see how you get on:

 

 

 

datetimeformat(ToDateTime(tonumber(<Insert field name>)), '%B %d, %Y %I:%M:%S %p')

 

 

The ToNumber() may not be needed in your case. If not, just remove that and try:

 

datetimeformat(ToDateTime(<Insert field here>), '%B %d, %Y %I:%M:%S %p')

 

 

 

Iirc, Alteryx can't handle milliseconds, though I may be mistaken.

 

DataNath_0-1652964635489.png

 

AmAm
7 - Meteor

@DataNath  you saved the day .... Thanks man!!

DataNath
17 - Castor
17 - Castor

No problem! Happy to help :)

Labels
Top Solution Authors