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.
SOLVED

API Date Time Format Said, "Huh?"

paullefrancois
6 - Meteoroid

I hope everyone's New Year is kicking last year's January 10th's BUTT!!!

 

I'm seeing a new date time string value coming in as "PT1H8M42.622S" (without quotes of course) and would appreciate assistance tackling this one.

 

The end result would be a capture of time. 

 

Thank you in advance!  

 

Paul

6 REPLIES 6
Qiu
21 - Polaris
21 - Polaris

@paullefrancois 
What is the name of your API or the target application?

Luke_C
17 - Castor
17 - Castor

Hi @paullefrancois 

 

I'm reading it as 1:08:42 Pacific Time (no date, just timestamp). Does this make sense with what you're expecting? What are you trying to do with it in your workflow?

Qiu
21 - Polaris
21 - Polaris

@Luke_C 
nice one!

paullefrancois
6 - Meteoroid

Hello Qiu,

 

I'm connecting to NICE (CXOne). 

 

Thank you very much,

 

Paul

paullefrancois
6 - Meteoroid

Reading the string visually wasn't really an issue. I was more looking for assistance with parsing the string out in an Alteryx workflow. 

Luke_C
17 - Castor
17 - Castor

Hows something like this? @paullefrancois 

 

datetimeparse([Field1],'PT%HH%MM%S')

Luke_C_0-1642021930333.png

 

Labels