C # - Remove ASPAS - Replace - Remove ASP Double

1

I have a variable (TEXT) that is a string, where its value is: "06/22/2018 00:00:00" How to make a Replace by removing its quotation marks?

    
asked by anonymous 22.06.2018 / 21:09

1 answer

1

Using String.Replace . follow an example: link

public static void Main(string[] args)
 {
     var x =  @"""22/06/2018 00:00:00""";
     var y = x.Replace("\"", " ");
     Console.WriteLine(y);
 }
    
22.06.2018 / 21:19