Another method:
string s = "2014/03/12";
s = s.Replace('/').Replace('.').Replace('-');
See here for more details .
Note: this approach is suitable for a limited number of characters, for more complex string manipulations you will want to use Regex
source
share