Now handles blank dates
Fixed typo