In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

datetime issue in MM-YYYY format

ecemurun
7 - Meteor

Hi,

I have a data set like below. I am trying to convert the data type from string to date, so I can sort by dates. However, the datetime_out I receive is null when using datetime tool. Do you have any suggestion of doing this by using another tools or how can I do  that by datetime tool?

 

Thank you!

 

(Data format is 'string')

01/2017
01/2018
02/2017
02/2018
03/2016
03/2017
03/2018
04/2016
04/2017
04/2018

3 REPLIES 3
LordNeilLord
15 - Aurora

Hey @ecemurun

 

Here's both methods for you :)

 

DateTime Tool:

 

Dt1.PNG

 

Formula tool 

 

dt2.PNG

 

For future reference....this webpage is incredibly helpful https://help.alteryx.com/9.5/Reference/DateTimeFunctions.htm

BenMoss
ACE Emeritus
ACE Emeritus

@LordNeilLord beat me to this one but I'll give another suggestion, you can use a simply formula in this instance such as...

 

right([field],4)+"-"+left([field],2)+"-01"

Create this as a new field and set the data type to date.

 

Ben 

ecemurun
7 - Meteor

thank you! both worked! you have great community with super fast answers :)

Labels
Top Solution Authors