Convert to a date object if it isn’t already that:
let d = new Date("2020-07-02T17:06:52.739Z")
You can use
This gives “Thu Jul 02 2020”. The function takes two arguments: a locale, and options. The options are described here. Look at some examples, it’s quite robust, you generally only need that (and the default is normally fine).
You can use a library like Moment (though note that Moment has several fundamental issues and there are better options, it was just the only good option for a very long time), but for what you need that’s a very heavyweight option.