Hello i want to find the difference between these 2 dates. So as i understand, this is the code for angular getting current date.
let currentDate = new Date();
and in the console log, the format is this. Fri Sep 03 2021 10:49:33 GMT+0800 but the other date that i retrieved from the database is in laravel carbon format i think which is like 2021-08-13T07:17:57.000000Z. Is there a way to find the difference between these 2 dates?