I have a variable "currntdate" of type string
The value of the variable is "'2017-08-03'"
(quotes included)
Now i want to remove the double quotes "
.
How can I do that in C#?
答案 0 :(得分:2)
Supposed you have
var currntDate = @"""'2017-08-03'""";
Just use
currntDate = currntDate.Replace("\"","");