Split the value


#1

HI I have a value like; 00:00:53. I want to split this value how to do that.
I just want to have 53 in my data table.


#2

String str= “00:00:53”;
str.Split(":"c).Last() //writeline it

Hey @Chirag1991
plz see attached sample : Split quick sample.xaml (5.1 KB)

Regards…!!
AKsh


#3

Use like this,

strArray = val.Split(":"c).ToArray

strArray[2] will have the value “53”.

Thanks,
Rammohan B.


#4

hi @Chirag1991

StrValue.ToString.Substring(6)

Thanks
Ashwin S