I have got the string like this below….
string a = backup-2011-10-12_17-16-51.zip
How can i split the above string so that only get this part 2011-10-12
For that I have tried this below but i am not sure how to split the string exact like this
2011-10-12
string[] getfiledate = a.Split(new[] { '.', '-','_' });
would any one pls help on how to split the one string .. …..
many thanks in advance..
If the string is always the same length, just use