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 String to Date

itahir04
8 - Asteroid

Hi Community:

How do I convert this Date field with string data type to a desired date format:

 

Current Date field example : 2020-05-29T10:26:10.5370000

 

Desired output example (need this format) : 8/30/2016 4:59:00 PM

 

 

Thanks,

itahir04

4 REPLIES 4
Thableaus
17 - Castor
17 - Castor

Hi @itahir04 

 

I strongly recommend you to use this table as a reference for any date conversions:

 

https://help.alteryx.com/current/designer/datetime-functions

 

You also have the functions you can use to parse and format dates.

 

Cheers,

itahir04
8 - Asteroid

Hi Thableau,

Thanks for this, I was looking for an eaxample but this is a good reference table.

 

Regards,

Rana

Thableaus
17 - Castor
17 - Castor

@itahir04 

 

Here's a solution

 

Thableaus_0-1591908483465.png

 

 

I'd replace the T or Z characters, convert to an Alteryx datetime format, and then format the date according to what you want.

 

I'm attaching the workflow.

 

Cheers,

itahir04
8 - Asteroid

Hi 

 

 

Labels
Top Solution Authors