Fixed some formatting issues with dates before 1900