In the screenshot DateTime.ToString() method is being called but the date is not getting formatted in expected format (as seen in Quick Watch widnow). Is something wrong ?

In the screenshot DateTime.ToString() method is being called but the date is not getting formatted in expected format (as seen in Quick Watch widnow). Is something wrong ?

You are using / as separator in your ToString format. But your current culture seems to has - as date separator. That is why you see the difference. You can pass CultureInfo.InvariantCulture with ToString.
Like:
DateTimeObject.ToString("MM/dd/yyy HHmmss", CultureInfo.InvariantCulture) / turn into -. Why are they being changed internally, despite being specified explicitly ?ToString then the current culture is used. You may see: stackoverflow.com/questions/2329297/…