You could alternatively use `currentDate.setHours(0, 0, 0, 0);` to set it to midnight.