Free Trial

Alteryx Designer Desktop Discussions

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

Formatted date is quite confusing

Kallis
8 - Asteroid

Hello Friends

 

I have 2 columns. Both of them are date columns. 

This is the date format

Column 1 - 01.12.2023

Column 2 - 01-12-2023

 

Column 1 is from SAP whereas Column 2 is what I have formatted

There are more than 100K lines.

It is alright for 90% of the lines but for about 800 lines, the format is different

01.12.2023 is 01.11.2023 

04.12.2023 is 04.11.2023 

so on and so forth

 

I do not know why this happens. Any help is appreciated

 

This is how I formatted Column 2

 

RequestApproveDate (Formatted) = 

 

Substring([RequestApproveDate]
,6,2)+"."+Substring([RequestApprove Date],4,2)+"."+Substring([RequestApproveDate],0,4)

 

Some examples

 

RequestApproveDateRequestApproveDate (Formatted) 
15.09.202315.08.2023False
25.10.202325.08.2023False
08.05.202308.04.2023False
02.08.202302.07.2023False
04.09.202304.08.2023False
06.02.202406.01.2024False
04.05.202304.04.2023False
25.10.202225.09.2022False
10.11.202210.10.2022False
17.02.202317.01.2023False
08.05.202308.03.2023False
10.05.202310.04.2023False
03.05.202303.04.2023False
22.05.202322.04.2023False
13.06.202313.05.2023False
01.09.202301.08.2023False
01.09.202301.08.2023False
02.10.202302.09.2023False
04.03.202404.02.2024False
06.03.202406.02.2024False
01.05.202301.04.2023False
05.05.202305.04.2023False
04.05.202304.04.2023False
01.05.202301.04.2023False
01.05.202301.04.2023False
16.05.202316.04.2023False
03.05.202303.04.2023False
6 REPLIES 6
binuacs
21 - Polaris

@Kallis Can you provide a sample [Work Item Created Date] and the expected result?

 

 

Kallis
8 - Asteroid

Hi @binuacs 

 

Workitem Created Date - 12.03.2023

Expected Result - 12-03-2023

binuacs
21 - Polaris

@Kallis Alteryx only support YYYY-MM-DD format as date data type, rest all will be considered as string data type

image.png

Kallis
8 - Asteroid

I thought so too @binuacs 

Converting to Alteryx date format is not a problem

How to convert the date to 10.03.2023 and maintain that as date datatype is the challenge

 

Kallis
8 - Asteroid

@binuacs my requirement is something else

I have 2 columns. Both of them are date columns. 

This is the date format

Column 1 - 01.12.2023

Column 2 - 01-12-2023

 

Column 1 is from SAP whereas Column 2 is what I have formatted

There are more than 100K lines.

It is alright for 90% of the lines but for about 800 lines, the format is different

01.12.2023 is 01.11.2023 

04.12.2023 is 04.11.2023 

so on and so forth

 

I do not know why this happens. Any help is appreciated

binuacs
21 - Polaris

@Kallis to answer your question "How to convert the date to 10.03.2023 and maintain that as date datatype is the challenge", as I said before Alteryx only support the ISO format which is YYYY-MM-DD, this is the only Date Type which alteryx can support. Any other format should be in string data type.

 

I am still not understanding your requirement here. What exactly you are trying to do with the below formula?

RequestApproveDate (Formatted) = 

 

Substring([RequestApproveDate]
,6,2)+"."+Substring([RequestApprove Date],4,2)+"."+Substring([RequestApproveDate],0,4)

Labels
Top Solution Authors