See https://nodejstools.codeplex.com/discussions/560780
The quick watch and immediate window during debugging both have a strange behavior when viewing a string which happens to be formatted as a date. Rather than show the actual string value, it seems to parse the string and display a locally formatted version of the string. This makes it very difficult to work with dates when you need to see how they are actually serialized.
Here is a sample from the interactive window showing it improperly display the first string but not another one:
```
moment().toISOString()
"10/21/2014 05:22:40"
'why: ' + moment().toISOString()
"why: 2014-10-21T05:23:05.052Z"
```
The quick watch and immediate window during debugging both have a strange behavior when viewing a string which happens to be formatted as a date. Rather than show the actual string value, it seems to parse the string and display a locally formatted version of the string. This makes it very difficult to work with dates when you need to see how they are actually serialized.
Here is a sample from the interactive window showing it improperly display the first string but not another one:
```
moment().toISOString()
"10/21/2014 05:22:40"
'why: ' + moment().toISOString()
"why: 2014-10-21T05:23:05.052Z"
```