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

Try using this @hsendel

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

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

2 Likes

Excellent!!! Palaniyappan as usual :slight_smile:

2 Likes

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