Alteryx Designer Desktop Discussions

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

Decimal to Datetime conversion

EN6924
10 - Fireball

I have an excel file where there are columns in date-time format like below -

 

Response time
28-02-2022 10:53:22
28-02-2022 11:34:13

 

When I try to import the file in Alteryx, it's showing in decimal values like below -

 

EN6924_0-1646148829765.png

 

How can I fix that?

 

 

10 REPLIES 10
Luke_C
17 - Castor

Hi @EN6924 

 

You can use a multi-field formula and a todatetime() function to fix this:

 

Luke_C_0-1646149273368.png

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @EN6924 

 

Here is how you can do it. The best way is to use the multi-field formula tool and ToDateTime() function.

Workflow:

atcodedog05_0-1646149342501.png

 

Hope this helps : )

 

TheOC
15 - Aurora
15 - Aurora

hey @EN6924 

Can you please upload an isolated part of your excel spreadsheet?

Thanks,
TheOC


Bulien
atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @EN6924 

Cheers and have a nice day!

EN6924
10 - Fireball

It's still not working

atcodedog05
22 - Nova
22 - Nova

oh, Xls file format its an old and doesn't support a lot of features. Let me look into it 😅

atcodedog05
22 - Nova
22 - Nova

Hi @EN6924 

 

Here is the updated workflow

 

atcodedog05_0-1646150758450.png

 

Hope this helps : )

 

EN6924
10 - Fireball

Great 🤗

 

It worked well.

 

EN6924_0-1646150925959.png

 

binuacs
20 - Arcturus

@EN6924 you can convert them in to date format using the bellow formula

 

DateTimeAdd('1900-01-01',toNumber([Call Open Date]) -2, "days")

binuacs_0-1646151343519.png

 

Labels