In my scenario
start_date = 2020-02-11 11:47:38
end_date = 2020-04-25 09:26:15
diff_date = end_date - start_date
print(diff_date)
output in console: 73 days, 21:38:37
writing in excel
worksheet.write(0,0, diff_date)
output in excel:74.9018171296296
Question is I want to get the same formate and type in excel as in console but It changes.
Note: str(diff_date)
gives the same format but it changes the datetime object into string type.