Date formatting

May 25, 2021 @WAT

Masterpiece

export const getCurrentDate = () => {
  return String(new Date().getFullYear()+'-'+("0"+(new Date().getMonth()+1)).slice(-2)+'-'+("0"+new Date().getDate()).slice(-2));
}