We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Convert V_String to Date format

beatrizmguerreiro
8 - Asteroid

Hello, 

 

I need to change this column (type V_string) to Date format. I have checked other posts and tried to replicate solutions, like add formula tool or DateTime tool, but I end up with Null Values. How should I approach this situation?

 

Hereis an example of my dataset:

 

01/01/2019
04/01/2019
05/01/2019
08/01/2019
08/01/2019
09/01/2019
10/01/2019
10/01/2019

13 REPLIES 13
beatrizmguerreiro
8 - Asteroid

Hello @Emil_Kos and @Qiu 

 

Indeed. Both solutions worked perfectly!

 

Thank you very much 🙂

Qiu
21 - Polaris
21 - Polaris

@beatrizmguerreiro 

Thank you for the accept also.😁

R_Tristao
6 - Meteoroid

The problems faced by Beatriz are exactly the same as they are for me. I am in the same situation and the same errors have appeared.
The Date field which is a V_string, is following the default 01/12/21 (DD/MM/YYYY).

R_Tristao_0-1654537682136.png

 

I'm trying to follow @Qiu's tips, and did the following

 

R_Tristao_2-1654538225612.png

I did some tests and they all return the same answer

 

R_Tristao_1-1654538178622.png

My intention is to create a column with the date following this format 12/21 (MM/YY)

Best regards

 

 

 

ddiesel
13 - Pulsar
13 - Pulsar

Hi @R_Tristao!

 

This should help:

 

Capture (1).JPG

 

Or you can combine these two steps into one formula:

DateTimeFormat(DateTimeParse([DATA],"%d/%m/%y"),"%m/%y")

(the data type must be a string, not a date since the resulting mm/yy format is not a date)

 

Please let us know if this resolves your issue.


Thanks,
Deb

 

 

Labels
Top Solution Authors