Count the symbols until reach specific symbol

I need to count the current day taken from my app.
The date example is: 13/01/2020

I need to count until I reach the first slash “/”.


do you mean like you want the value before the first “/”
if input is str_input = “13/01/2020”
its like this with assign activity

str_output = Split(str_input,"/")(0).ToString

Cheers @Veselin_Ganchev

I mean my variable getDate is taking from my app the current day.
For example 13/01/2020
I need to count the strings before the first slash “/”
I need to count only the 13 and stop counting.
My new variable countVar need to store the result from getDate.

count what the length of the string before the first “/” or what buddy

Count the length will be enough.

Hi @Veselin_Ganchev

Based on the split given by @Palaniyappan

Use CountVar= Split(str_input,"/")(0).ToString
and then check it
Ashwin S

awesome then the expression be like this
int_length= Split(str_input,"/")(0).ToString.Length
where int_length is a variable of type int32

Cheers @Veselin_Ganchev


Thanks for the fast answer.


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