So, given:
dttm = datetime.datetime.strptime(\"2014-06-23 13:56:30\", \"%Y-%m-%d %H:%M:%S\") ws[\'A1\'] = dttm
The result in excel is that
For openpyxl 2.3.4 the NumberFormat cannot be imported, but this code works to set the style:
from openpyxl.styles import Style … date_style = Style(number_format="DD/MM/YYYY HH:MM:MM") ws['A1'].style = date_style