Possible To Convert String written "xx:yy:zz" To TimeSpan "hh:mm:ss"?

Dears,

Possible To Convert String wrtiien “xx:yy:zz” To TimeSpan “hh:mm:ss” to be used as delay in “Delay” Activity ? Thx

2 Likes

Try using this @hsendel

Dim timeCheckin As String = "HH:mm:ss"
ts = TimeSpan.Parse(timeCheckin)
2 Likes

Hi
Well if that string xx:yy:zz has values like 00:00:00 or numerical then it can be directly passed as like this
Convert.ToTimespan(yourvariable)

Cheers @hsendel

1 Like

Hi Palaniyappan

Please find error message:
image

1 Like

I hope
TimeSpan.Parse(yourstringvariable)
Will work for sure buddy

For more info

Cheers @hsendel

5 Likes

Excellent!!! Palaniyappan as usual :slight_smile:

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.