Alteryx Designer Desktop Discussions

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

Channing Of Date Format

shashank_shukla
8 - Asteroid

Hello All,

 

Scenario:- 

I am fetching a data from Excel file and in the file one of the Date column is present which is in String format and I have to convert that into default date format of Alteryx.

 

Input DateOutput Date
19th October 202019-10-2020
22nd November 202022-11-2020
5th April 202205-04-2020

 

 

Can anyone help me to resolve this problem?

If possible kindly attach the sample WF as well.

5 REPLIES 5
binuacs
20 - Arcturus

@shashank_shukla one way of doing this by checking the 'th' and 'nd' after the day

binuacs_0-1649426310218.png

 

Qiu
20 - Arcturus
20 - Arcturus

@shashank_shukla 
I remove the "nd", "st" or "rd" with a RegEx formulathen do the DateTimeParse as below

0412-shashank_shukla.PNG  

shashank_shukla
8 - Asteroid

Hey @binuacs ,

 

Thank you very much for quick reply I tried your solution and its worked very well for me.

Thank you very much for help.

Have a great day ahead of you.

 

shashank_shukla
8 - Asteroid

Hello @Qiu ,

 

Thank you very much for providing the solution.

Your solution is also working fine with me.

 

Thank you very much for providing the different way of solution.

Have A Great Day Ahead Of You.

Qiu
20 - Arcturus
20 - Arcturus

@shashank_shukla 
Thank you very much for the feedback and glad to be helpful. 👍

Labels