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

Data conversion for V_string to date - does not work

rlopez
5 - Atom

Hi All,

 

I have a date coming in via Excel as Sep 6, 2019, 10:03:35 AM. It is accepted into Alteryx as a V_string. I need to convert it to a date in yyyy-mm-dd format.

 

Converting via Select tool or the DateTimeParse (tried DateTimeParse([Raw Date],"%Y/%m/%d")) results in nulls. What else can I do?

 

Thanks in advance,

Rosa

3 REPLIES 3
danilang
19 - Altair
19 - Altair

Hi @rlopez 

 

You need to change the format string "%Y/%m/%d" to match the format of the date.  In your case  it will be 

 

 

DateTimeParse([RawDate], "%b %d, %Y, %I:%M:%S %p") 

 

 

Check this page for a list of the various format options

 

Dan 

RolandSchubert
16 - Nebula
16 - Nebula

Hi Rosa,

 

try DateTimeParse([Raw Date],"%b %d, %Y")

 

%b is the abbreviated month name.

 

Best regards

 

Roland

rlopez
5 - Atom

Thank you very much! Both solutions works!

Labels
Top Solution Authors