Search code examples
c#visual-studiodebuggingdatetime

Change DateTime in the Microsoft Visual Studio debugger


How do I change the value of a DateTime in the debugger? I can change it, but I get an error when leaving the edit field; it cannot parse it.


Solution

  • Without looking at what you have, I'm not really sure what edit field you're referring to. However, you could try using the immediate window and DateTime.Parse or new DateTime() instead.