[javascript] How to initialize a JavaScript Date to a particular time zone

For Ionic users, I had hell with this because .toISOString() has to be used with the html template.

This will grab the current date, but of course can be added to previous answers for a selected date.

I got it fixed using this:

_x000D_
_x000D_
date = new Date();_x000D_
public currentDate: any = new Date(this.date.getTime() - this.date.getTimezoneOffset()*60000).toISOString();
_x000D_
_x000D_
_x000D_

The *60000 is indicating the UTC -6 which is CST so whatever TimeZone is needed, the number and difference can be changed.