fix formatting to allow for None datestrings