add formatDate() but isn't working yet