Implement date formatting for years < 1900 using a workaround of Python's date formatting.