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.
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.
Different ways to Escape Double Quotes in C# Programming: Using @ and “ ” Escape Character. Using \ Backslash Escape Character.
Replace("\"", string. Empty). Trim(); We have added "\" (backslash) before double quotes to escape the quotation mark.
' 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.
myvariable = Replace(FormatParameter("EndDate"), """", "")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With