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

Convert text date to date

marcin2x4
9 - Comet

 

Here are my sample dates

 

Monday, November 5, 2018 8:38 AM
Wednesday, October 10, 2018 2:51 PM

 

How can I get them converted into below format

2018-11-05
2018-10-22

 

3 REPLIES 3
CharlieS
17 - Castor
17 - Castor

Here's the formula used to parse that format:

 

DateTimeParse([Input],"%A, %B %d, %Y %I:%M %p")

 

I recommend keeping this page bookmarked:

https://help.alteryx.com/9.5/Reference/DateTimeFunctions.htm

Thableaus
17 - Castor
17 - Castor

Hi @marcin2x4

 

 

Sorry I had not seen Charlie's reply.

I'd add the DateTimeFormat function to remove the time.

DateTimeFormat(DateTimeParse([Field1], "%A, %B %d, %Y %I:%M %p"),"%Y-%m-%d")

 

Cheers,

marcin2x4
9 - Comet

@Thableaus - I modified @CharlieS solution also to skip time.

 

DateTimeParse([Date of query receive],"%A, %B %d, %Y")

 

Labels
Top Solution Authors