How to convert UTC Datetime to CST or else IST to CST using javascript
Kindly help me out on this.
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Harshal LimayeRank #485 · 5.1K reputationPosted Mar 9, 2021, 9:55 AM EST
+2
Central Standard Time (CS) is 6 hours behind the UTC universal time. Hence, to get the time in CST, you can adjust the date's UTC time by offset 6, then just read the UTC values.
Harshal LimayeRank #485 · 5.1K reputationPosted Mar 9, 2021, 9:55 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Mar 9, 2021, 8:47 AM EST
Rijwan AnsariRank #82 · 24.2K reputationPosted Mar 10, 2021, 7:38 AM EST
Satya KarkiRank #78 · 24.6K reputationPosted Mar 10, 2021, 7:40 AM EST
Reference:
1. moment library: https://momentjs.com/
2. time and date specific functions: https://timestamp.online/article/how-to-convert-timestamp-to-datetime-in-javascript
Bhawani43 reputationPosted Apr 7, 2021, 3:36 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts