I am passing "/Date(1541116800000)/"
as string in my method. How to extract only date and then return it as string in if condition?
public convertDateToString(string value)
{
if (DateTime.TryParseExact("yyyy-MM-dd"), out string dateValue)
return value; (returns just the date from datetime in string format)
}