const secondsToYMDconvertor = () => {
  const convertSecondsToDate = (seconds) => {
    const date = new Date(seconds * 1000); 
    const day = date.getDate().toString().padStart(2, '0'); 
    const month = (date.getMonth() + 1).toString().padStart(2, '0'); 
    const year = date.getFullYear();
  
    return `${day}-${month}-${year}`;
  };

  return convertSecondsToDate;
};

export default secondsToYMDconvertor;
