Replacing several different characters in a string

Posted by Anry on Stack Overflow See other posts from Stack Overflow or by Anry
Published on 2010-04-21T21:45:40Z Indexed on 2010/04/21 21:53 UTC
Read the original article Hit count: 295

Filed under:

String 14/04/2010 17:12:11. How to replace the characters to get a string

14%04%2010%17%12%11

I know the method Replace, but its syntax Replace(Char,Char). I have to use it 3 times. How to write shorter? Use regular expressions? Can I do without them?

© Stack Overflow or respective owner

Related posts about c#