Fix bug in date format string