def METHOD_NAME(self):
    """Test dates and times with write() method."""
    workbook = Workbook(self.got_filename)
    worksheet = workbook.add_worksheet()
    worksheet.set_column(0, 0, 12)
    format1 = workbook.add_format({"num_format": 20})
    format2 = workbook.add_format({"num_format": 14})
    date1 = datetime.strptime("12:00", "%H:%M")
    date2 = datetime.strptime("2013-01-27", "%Y-%m-%d")
    worksheet.write(0, 0, date1, format1)
    worksheet.write(1, 0, date2, format2)
    workbook.close()
    self.assertExcelEqual()