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

Alteryx Designer Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.

Issue reading Excel file in Alteryx Cloud: Incorrect date format

GabrielFernandes
7 - Meteor

Hello community, I'm trying to read an Excel file in Alteryx Cloud and it is in the format dd/mm/yyyy, but when I read it in Alteryx Cloud it is becoming mm/dd/yyyy. I've tried several conversions, but it didn't work.

The field is also coming with string

 

Print ExcelPrint ExcelPrint erroPrint erro

12 REPLIES 12
alexnajm
17 - Castor
17 - Castor

Attach the Excel here so we can give you a proper solution!

GabrielFernandes
7 - Meteor

@alexnajm  follow file


alexnajm
17 - Castor
17 - Castor

@GabrielFernandes I read in the file, and I am not seeing the same issue...

Issue reading Excel file in Alteryx Cloud Incorrect date format.png

 

GabrielFernandes
7 - Meteor

strange because the correct one is:

08/08/2024
09/08/2024
09/08/2024
08/12/2024
08/12/2024

yours is getting
m/d/y instead of d/m/y

9784bc6d-2eb8-4f4e-b67c-dcdf54a71b38.png

 

 

alexnajm
17 - Castor
17 - Castor

Very strange indeed - I didn't do anything to your Excel besides open it so maybe it's just regional differences?

 

Either way, you should be able to convert to a Date data type using that DateTime tool knowing that the format coming into Designer Cloud is mm/dd/yyyy

GabrielFernandes
7 - Meteor

@alexnajm 

I also thought this would solve it but it would return wrong

 

Captura de tela 2024-08-19 111359.png

 

I tried to force using the format MM/dd/yy
however it comes out with - instead of /

Captura de tela 2024-08-19 112203.png

alexnajm
17 - Castor
17 - Castor

That's correct - Dates in Alteryx are always in the yyyy-mm-dd format. You can store dates as a string in the format you want but you'll want it in the yyyy-mm-dd if you want to do DateTime calculations!

 

I am not sure I understand your ultimate goal - what are you trying to accomplish?

GabrielFernandes
7 - Meteor

 

Could this be a system error?

the system should allow you to use / since it is in the DATATIME node

I would like to work with data formatted as a date and with "/" if I put it as a string, Excel understands it as text and then I cannot manipulate it effectively

alexnajm
17 - Castor
17 - Castor

That's correct - anything besides yyyy-mm-dd will be treated as Text and behave as such! If you want data to be a Date data type, keep it as yyyy-mm-dd