Consider the following example:
var testDate = new Date("2021-05-17T00:00:00"); // this represents local date and time
I am looking to convert this given Date into UTC format without altering the original date and time value. Essentially, 2021-05-17T00:00:00 should be recognized as a UTC date and time, while still being displayed in the browser as my local time which is 2021-05-17T05:45:00 (based on my current timezone).