export default (date: string) => { const dateObject = new Date(date); return dateObject.toLocaleDateString(); }