I am using a string format with multiple lines of text and one single quotes is a part of that text. The code is like
string _query = @"{ts '{0}-{1}-{2} 00:00:00'}
";
_query = string.Format(_query, DateTime.Now.Year, DateTime.Now.Month, 25);
But the string format return exception as
Input string was not in a correct format.
How can we add single quote in a multiline text along with string format