Split text from string?

I have sting = 23/01/2021

I want to split to 3 part
string1 = 23
string2 = 01
string3 = 2021

Please guide me about it.

Try this

test.Split("{"/"}",StringSplitOptions.None)

1 Like

Just done small change try this
test.Split({"/"},StringSplitOptions.None)
test.xaml (5.8 KB)

2 Likes

Hey

Check out this very helpful MegaPost.

1 Like

@ermanoj3101 I apply your code.

[testtt.xaml|attachment]
datatest.xlsx (8.9 KB)
testtt.xaml (20.0 KB)

But output not correct as below.
image

Please guide me for solve it.

1 Like

let me check

testtt.xaml (20.3 KB)

You have done a mistake of variables instead of string you have to use Array of string.
Now it’s working…

Hi,
in UiPath you can have activity for this:
Check Microsoft.Activities.Extensions:
image

Sample for activity Split String:

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