I am pretty new to Javascript, I have a requirement where I'll get a Date as one of the input value in format YYYY-MM-DD (Eg: 2014-07-01), and I need to convert this to UTC offset (-4 or -5) based on daylight saving time (Eg: 2014-07-01T00:00:00-04:00". I am using below piece of code, but it's not adding the offset value at the end of the date string instead I am getting like this "2014-07-01T00:00:00.000Z".
            if (wheelRequest.RegEndDate){
                var regEndDate = new Date(wheelRequest.RegEndDate);
                var regEndDateFormatted = new Date(regEndDate).toISOString();
                licensenumObj.enddate    =    regEndDateFormatted ;
            }
I've verified the other post (How to format a JavaScript date) but it doesn't mention how to show the offset value at the end. Please advise on how I can able to add the offset based on my need.
Thanks, Suman.
 
     
    