I've inherited a codebase littered with DateTime objects created like this:
DateTime d = Convert.ToDateTime("2008-02-05");
which are failing when tests are ran on NY servers due to the culture of the string. I wish to convert them to the more sensible format:
DateTime d = new DateTime(2008,02,05);
I've written a VS macro that converts them one at a time, but I wondered if someone could help me write a regex so that I can find and replace them in bulk?