I am trying to convert a datetime string to JS date obj.
My Input is
2021-09-16 19:15:52.930
.
The problem is this string doesn't have a timezone, And I need to mark them in cdt/cst(depending on daylight savings) timezone when converting to JS date obj.
The way I am trying to do is:
let dt = new Date('2021-09-16 19:15:52.930 Timezone')
I could pass CDT or CST in placeof timezone, to get it parsed.
But in this case, my logic needs to know which timezone is currently being followed depending on time in year.
I wanted a way so that it can be handled automatically by JS, Like- passing CT? 2021-09-16 19:15:52.930 CT
But this doesn't seem to be supported by Date().