pd.DataFrame has Date column (has datetime data type) with style such as:
%dd.%mm.%yyyy #for example 03.08.2020
but after INSERT to SQL Server
df.to_sql(con_param)
result in RDB looks like 08.03.2020 instead 03.08.2020.
Problem is not linear, cause for example 31.07.2020 looks like 31.07.2020.
Local of datebase is SQL_Latin1_General_CP1_CI_AS.
What is wrong?
UPD to sql block fyi
correct_df = pd.read_csv(path)
correct_df = correct_df.astype({
'Req_Date': 'datetime64', 'Date': 'datetime64'})
correct_df.to_sql(con=conn, name='table', schema='schema', if_exists='append', index=False)