I have a function that converts a Date to a timestamp, but it includes the timezone, which I don't want. I only need the date with no timezone information in Instant type.
convertDateToTimeStamp(date: any) {
return Date.parse(date) / 1000;
}
Before using convertDateToTimeStamp(), the date value is **Fri Mar 24 2017 00:00:00 GMT-0400 (Eastern Daylight Time)**
After using convertDateToTimeStamp(), the date value is **1490328000** which is **Thursday, November 26, 2015 12:00:00 AM GMT-05:00**
I want the date to remain the same across all timezones, without any GMT added to it.