this code is not needed. Please use

```js
var theDate = new Date(Date.parse(stringDate));
```