In my scenario, user enters the date and the timezone of that date.
The user may be in any timezone Say, the given date is 2nd Feb 2015 06:00:00 for EST (GMT-0500). The user is in IST (GMT+0530).
If i create a give,
var ScheduleOn = new Date('02/02/2015 06:00:00')
ScheduleOn is Mon Feb 02 2015 06:00:00 GMT+0530 (IST)
It is creating date in IST format.
I have tried specifying time zone also ( var ScheduleOn = new Date('02/02/2015 06:00:00 UTC-0500')
), it is not working.
I need time in the local time zone (IST) for the given time in the given timezone (EST).
What I need is ScheduleOn is Mon Feb 02 2015 16:30:00 GMT-0500 (EST)