updated date and formatted it