Using getUTCDate is not returning the correct date

user1345246 Source

I am trying to get the getUTCDate of March 26th 2018 at midnight with +0800 and it is returning 25 when it should show 26. I am using IE11

var Date1 = new Date ("2018-03-26 00:00:00 UTC+0800");
var Date2 = Date1.getUTCDate();

Why is Date2 equal to 25?



comments powered by Disqus