added formatDate method