# Split text (string)

**URL:** <https://forum.uipath.com/t/split-text-string/330775>\
**Category:** Activities\
**Tags:** question, studio, orchestrator, excel, system, activities\
**Created:** [July 19, 2021, 11:25am UTC](https://forum.uipath.com/t/split-text-string/330775 "2021-07-19T11:25:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fairymemay](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@fairymemay](https://forum.uipath.com/u/fairymemay)\
**Post date:** [July 19, 2021, 11:25am UTC](https://forum.uipath.com/t/split-text-string/330775/1 "2021-07-19T11:25:12Z")

</div>

I​ want​ split​ value​ in​ ColumnG​ (split​ /)​ as​ below

[testtt.xaml|attachment]  
[datatest.xlsx](https://forum.uipath.com/uploads/short-url/qyZlZPqw7EHOAXx6FGZDflnoAzh.xlsx) (8.9 KB)  
[testtt.xaml](https://forum.uipath.com/uploads/short-url/3dFNrdBOIZthRQ9OSOOBdlREYIx.xaml) (20.0 KB)

But output not correct as below.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/3/5/35560ee36c75058c63c404e50b55dd9968efed14.png)  
I​ want​ output​ toEffDate =23​, toEffMonth = 07​ , toEffYear = 2021

Please guide me for solve it.

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [July 19, 2021, 11:28am UTC](https://forum.uipath.com/t/split-text-string/330775/2 "2021-07-19T11:28:41Z")

</div>

Fine  
You can use this expression

Use a assign activity inside a for each row activity with dt as input  
In assign  
**Str\_toEffDate = Split(row(“ColumnG”).ToString.Trim,”/“)(0).ToString**

**Str\_toEffmonth = Split(row(“ColumnG”).ToString.Trim,”/“)(1).ToString**

**Str\_toEffyear = Split(row(“ColumnG”).ToString.Trim,”/“)(2).ToString**

Cheers @fairymemay

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [July 22, 2021, 11:29am UTC](https://forum.uipath.com/t/split-text-string/330775/3 "2021-07-22T11:29:33Z")

</div>

Closed on July 22, 2021, 11:29am UTC

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