I wanted to convert a timestamp which i am getting as below format
"2019-08-31T00:00:00+0800"
when i am converting into date using javascript it is giving me
Fri, 30 Aug 2019 16:00:00 GMT
But the desired date is
31 Aug 2019
I have noticed that there is +0800 at the end of the timestamp, if i add that time to the GMT time, it is giving me the desired result.
Is there any method or a date function to convert it. or do we have any angular pipes to convert it into the desired date ?
which format of date is it actually ?
can refer to this link for GMT +8 offset - https://greenwichmeantime.com/time-zone/gmt-plus-8/