How set time

How to set time parametrs: hh:mm: ss?
Now I have hh:mm: ss: ms

Hey @RPA3

Can you explain your scenario a little bit? I don’t understand what you are trying to do here…

I measure the time spent on action. I have now shows: 00:00:23.8343832
I need only 00:00:23

I think this post will help you to get the required output…

Let know if this works for you.

Happy holidays

@RPA3

DateTimeVariable.ToString(“hh:mm:ss”)

It’s doesn’t work
Assign: Input string was not in a correct format.

If I set:DateTimeVariable.ToString(“hh”)
DateTimeVariable.ToString(“mm”)
DateTimeVariable.ToString(“ss”)
It work. But DateTimeVariable.ToString(“hh:mm:ss”) don’t work

Can you please upload the entire error?

Hey @RPA3

Try below code

(Date.Parse(DateTimeVariable.ToString(),System.Globalization.CultureInfo.InvariantCulture)).ToString(“hh:mm:ss”)