Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Convert a date from yyyy-mm-dd to mm/dd/yyyy format

Bitopi
7 - Meteor

Hi All, 

 

I have  few dates in the file which is a  V_WString and I have converted it  to date format using  DateTimeParse([date],"%Y-%m-%d") function. 

 

Now I need to convert the above date for example as shown  below: 

 

        "2020-05-14"  to  "05/14/2020". 

 

Can you please help me out?  

 

Thanks in advance.

 

 

 

 

 

 

7 REPLIES 7
ggruccio
ACE Emeritus
ACE Emeritus

Hi @Bitopi,

 

You'll want to use the DateTime tool - as shown below - Please view the attached workflow:

 

ggruccio_0-1589468744249.png

 

Bitopi
7 - Meteor

Thank you very much. It worked.

rituraj963
8 - Asteroid

Agreed, the format changed as expected. But how to retain the data type? Requesting to change only the format, not the data type.

Tmanuela
8 - Asteroid

Hi @

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @Tmanuela 

 

Can you post this as a new question, provide some sample data, expected output. Please provide a excel file with only date column. Please do not provide only image its becomes really hard to solve.

We will be happy to help 🙂

Tmanuela
8 - Asteroid

hi  @atcodedog05 , sure, I'll post a new query 🙂 thanks

prpatel
11 - Bolide

Hi @Tmanuela,

 

In your configuration of the datetime parse tool you have selected the wrong date input format, you selected 'dd/MM/yyy', when what you should have selected is 'yyyy-MM-dd'

 

try and see if that works...hopefully you have fixed it by now.

 

-prpatel.

Labels