How to convert time in TypeScript? How to convert UTC to IST(UTC+5:30) in TypeScript?
Loading
How to convert time in TypeScript? How to convert UTC to IST(UTC+5:30) in TypeScript?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Md SarfarajPosted Apr 9, 2022, 5:03 AM
Dhanush KPosted Apr 12, 2022, 3:58 PM
Dhanush KPosted Apr 12, 2022, 3:57 PM
You can add time manually using getTime(). which gets time in milliseconds.
curDate=new Date();
futDate=new Date(this.curDate.getTime()+330*60000);
This will add 5 hours 30 minutes to current time.
Uttam KumarPosted Apr 8, 2022, 6:26 PM