Alteryx Designer Desktop Discussions

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

Output time to Seconds

Saagar
7 - Meteor

I want to output 00:53:11 datetime to '11 Seconds'

 

Can anyone help me with this 

6 REPLIES 6
Kamran1991
11 - Bolide

Hi @Saagar,

 

you can simply  take two characters from right

Saagar
7 - Meteor

Yes, But i want to take 11 and output it as '11 Seconds' not just 11

Saagar
7 - Meteor

Even if i use the datetimeformate(Seconds) function it will give me the output as 11 but I want it as '11 Seconds'

atcodedog05
22 - Nova
22 - Nova

Hi @Saagar 

 

Use right() function to get last 2 digits refer below. After that add "seconds" string like right([Input],2)+" Seconds"

 

atcodedog05_0-1648907951511.png

https://help.alteryx.com/20214/designer/string-functions

 

Using + to add 2 strings is a common method across multiple programming languages.

 

Hope this helps : )

 

Kamran1991
11 - Bolide

Kamran1991_0-1648908057102.png

I hope this will resolve your query.

 

Thanks,

Kamran

Kamran1991
11 - Bolide

Kamran1991_0-1648908218161.png you can add any text in this formula. Thanks!

Labels