Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

String.Remove/String.Replace ain't working?

$
0
0

Hi everyone!
Could somebody tell me why can't I remove parts from my string?

Resuming: Basically I have these string _data which goes to my database and gave me that value.

string _data = "2019/1/13 00:00:00"

_data.Remove(10, 8);
_data.Remove(10);
_data.Replace(" 00:00:00", "");

I already tried to use all of this methods but, for some reason, they are not working. What am i doing wrong?

P.S: I am doing this inside a foreach


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>