Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Time Format

rmartinez4
8 - Asteroid

Hi All,

 

Is possible to extract the date and time from this format 2022-09-07T16:34:14Z? I don't care for the trailing Z.

 

 

Thank You,

3 REPLIES 3
IraWatt
17 - Castor
17 - Castor

Hey @rmartinez4,

You can use the date time tool and use a custom format to convert you data to a date time data type:

IraWatt_0-1662663553267.png

You can find some good quick videos on how data types work here on the community https://community.alteryx.com/t5/Interactive-Lessons/Understanding-Data-Types/ta-p/73958 or just check the docs your feeling brave https://help.alteryx.com/20221/designer/data-types.

 

Any questions or issues please ask

Ira Watt
Technical Consultant
Watt@Bulien.com 

 

chukleswk
11 - Bolide

Yes, you can use a formula tool prior to using the date tool to remove the Alpha characters:

 

Trim(regex_replace([Field1],"[A-Z]"," "))

 

Time Format.PNG

MarqueeCrew
20 - Arcturus
20 - Arcturus

@rmartinez4 ,

 

Please take the time to learn how to create the following formula:

 

DateTimeParse([Field1],"%Y-%m-%dT%H:%M:%S")

 

Here are two of my posts about dates:

 

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Marquee-Crew-s-Guide-to-Dates/ta-p/...

 

https://community.alteryx.com/t5/Engine-Works/MarqueeCrew-s-Guide-to-Avoiding-Date-Frustration/ba-p/...

 

Cheers,

 

Mark

 

Sorry @IraWatt but I discourage the use of that macro.  

 

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels