Reputation: 1803
Good day, I would like to ask how can I add any timezone in my date object?
My scenario is I have created a date picker and time picker and they will generate a DateTime Object looking like "01/02/2003 4:56 PM" I just need to add the GMT +/- (Timezone) in the date time object so it can look like "01/02/2003 4:56 PM GMT + 0700" and my backend will process the conversion to utc.
Is it possible? Thank you and good day.
Upvotes: 0
Views: 187
Reputation: 372
You can use new Date("01/02/2003 4:56 PM")
which will return time zone information.
Upvotes: 1