I have two dates.
1. the current date: new Date() // Today
2. the date when anything should expire new Date(2022, 3, 27)
I need the value between this two das (the difference is 2 days), but I need the date value from the difference between these dates so I can count -1 every second
Days| Hours | Minutes | second
 00    23        10        55
I use date-fns lib. How I make it ? can anyone help me ?
€:
Code:
  const dif = () => {
    if(expire_date) {
      const d = differenceInHours(expire_date, new Date());
      console.log(d);
    }
  };
  dif();
 
     
    