I have searched and seen how to find the difference between times but how do I use the date inputed by the user when I'm doing it? Any help is appreciated. Thank you.
const activity = $('#activity').val();
const startValue = $('#start-time').val();
const endValue = $('#end-time').val();
const date = $('#date').val();
const timeStart = new Date("date" + startValue).getHours();
const timeEnd = new Date("date" + endValue).getHours();
const inBetween = timeEnd - timeStart;