c# - Replace backslash in string

I am having a few problems with trying to replace backslashes in a date string on C# .net.

So far I am using:

string.Replace(@"\","-")

but it hasnt done the replacement. Could anyone please help?

This question and all comments follow the "Attribution Required."

All Answers

Answers Loading...
Leave a Reply
You must be logged in to post a answer.
About the author