Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP - Removing Double quotes from a string

I have a ASP Page and it has so many date variables.

myvariable = FormatParameter("EndDate")

EndDate is "10/01/2001"

How can I remove the double quotes from the date variable? so that it can be 10/01/2001.

I can do this in .NET but couldn't find a way to do it in ASP.

Any help is greatly appreciated.

like image 329
kalls Avatar asked Mar 26 '12 15:03

kalls


People also ask

How do you remove double quotes from a string?

Use the String. replaceAll() method to remove all double quotes from a string, e.g. str. replaceAll('"', '') . The replace() method will return a new string with all double quotes removed.

How do I escape multiple double quotes in C#?

Different ways to Escape Double Quotes in C# Programming: Using @ and “ ” Escape Character. Using \ Backslash Escape Character.

How do you trim a quote in C#?

Replace("\"", string. Empty). Trim(); We have added "\" (backslash) before double quotes to escape the quotation mark.

How do you escape quotation marks in a string?

' You can put a backslash character followed by a quote ( \" or \' ). This is called an escape sequence and Python will remove the backslash, and put just the quote in the string.


1 Answers

myvariable = Replace(FormatParameter("EndDate"), """", "")
like image 134
bfavaretto Avatar answered Sep 22 '22 10:09

bfavaretto