Alteryx Designer Desktop Discussions

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

Replace and change data type

aviziteu
7 - Meteor

Hi, Please help me with the below transformation in a flow:

 

Current state: 26.10.2020, type V_String

Desired date: 26/10/2020, type Date; so that I would a pply a filter and select the dates up to a fixed one.

 

Thanks!

Andreea

8 REPLIES 8
Emil_Kos
17 - Castor
17 - Castor

Hi @aviziteu,

 

Can you provide us with data sample? 

Aaron_Harter
11 - Bolide

Hi @aviziteu

 

Alteryx uses the ISO format yyyy-mm-dd HH:MM:SS to represent dates and times. Here's a link to more info about DateTime Functions and converting your dates into your desired format once you have Filtered to the desired range - https://help.alteryx.com/current/designer/datetime-functions 

aviziteu
7 - Meteor

Hi @Emil_Kos 

Thanks for replying,

 

This is a sample:

AS IS: Desired state:
Opened DateDate/Time Closed any format that could be used in filtering the dates, recognized as Date/Date Time
7.8.20197.8.2019 10:57 
25.7.2019  
17.1.201917.1.2019 11:51 

 

I am thinking to try with this formula:

DateTimeParse("2016/28-03","%Y/%d-%m")

 

I am looking forward to hearing your feedback.

 

Thanks,

Andreea

aviziteu
7 - Meteor

Thanks @Aaron_Harter , I am lost with the dates, the article is helpful.

Emil_Kos
17 - Castor
17 - Castor

Hi @aviziteu,

 

I am not expert with regex so I use date time parse tool.

 

Emil_Kos_0-1603986024789.png

 

Please mark as an answer if this was helpful for you!

 

atcodedog05
22 - Nova
22 - Nova

Hi @aviziteu 

 

Here is a workflow to parse the given dates

 

DateTimeParse([Opened Date],"%d.%m.%y") // only date

DateTimeParse([Date/Time Closed],"%d.%m.%y %H:%M") // date & time

 

Output:

atcodedog05_0-1603986607890.png

Workflow:

atcodedog05_1-1603986621268.png

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

 

aviziteu
7 - Meteor

This is awesome stuff, thanks, worked for me 😉

Thank you, @atcodedog05 !

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @aviziteu 

 

Cheers and Happy Analyzing 😀

Labels