i have to subtract two days and need to get the total hours.
let date1 = moment.tz(new Date(), "YYYY-MM-DDTHH:mm:ss", "America/Chicago").local().format('MM/DD/YYYY h:mm A');
let date2 = moment.tz(titleDate, "YYYY-MM-DDTHH:mm:ss", "America/Chicago").local().format('MM/DD/YYYY h:mm A');
let getHours = date1.diff(date2, 'hours')
i need to get the total hours like this way. any different way to resolve this issue ?