added formatDate as a default