I have this variable 'previousDate' and assigned it to previous date.
var previousDate;
When i do a console.log(previousDate), i get this value at the console.
Wed Dec 07 2016 10:02:37 GMT-0800 (Pacific Standard Time)
Now, when i json.stringify this data, i get following date and time.
2016-12-07T18:02:37.223Z
The date is the same but please note the time here. Instead of PST, it is showing me GMT. I need to have the PST timing here too when i stringify. Any suggestions please ?