Alteryx Designer Desktop Discussions

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

Date Format

Kristie_Pires
8 - Asteroid

Hi there,

 

I have an excel file where all the dates are formatted as MM/dd/yyyy

ex: end_date >>> 5/10/2022

 

So I have the DateTime tool convert these strings to dates which requires the incoming string format to stay the same.

However, some days these string fields have this format yyyy-MM-dd in Alteryx (not in excel) before hitting the DateTime tool. This means I have to manually fix the formulas for the workflow to give me the data I want to see.

Kristie_Pires_0-1653483442332.png

Has anybody encountered a similar situation? I am not sure how to prevent Alteryx from changing the format.

Thank you!

6 REPLIES 6
IraWatt
17 - Castor
17 - Castor

Hey @Kristie_Pires,

This is happens when the data in excel is defined as text or dates:

IraWatt_1-1653484400896.pngIraWatt_2-1653484424519.png

results in your issue:

IraWatt_0-1653484355227.png

Cells defined as dates in excel will be converted to Alteryx date format, cells defined as text wont. To avoid this you can change your file type to CSV this will force everything to come in as text. 

HTH,

Ira

Sebastiaandb
12 - Quasar

@Kristie_Pires ,

 

Mmmm interesting! Why not make a formula that can handle the cases that occur?

 

 

Sebastiaandb_0-1653487011809.png

 

 

 

Greetings,

 

Seb

 

Kristie_Pires
8 - Asteroid

Thank you all for helping me understand why it was happening in the first place :) 

 

Thanks @Sebastiaandb - your formula solved the issue! 

IraWatt
17 - Castor
17 - Castor

No worries @Kristie_Pires ! Glad it helped :)

sireeshagandam
8 - Asteroid

Good

Labels