Description
Pandas version checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
import pandas as pd
df = pd.read_excel(file_name, parse_dates = False)
df.to_excel(output_name, index = False)
Issue Description
The above code parses the date from (dd/mm/Y) to (Y-mm-dd hh:mm:ss) even though i specified to not parse dates.
Expected Behavior
The written file should retain the orignal date format.
Installed Versions
INSTALLED VERSIONS
commit : 06d2301
python : 3.10.4.final.0
python-bits : 64
OS : Linux
OS-release : 4.14.186+
Version : #1 SMP PREEMPT Tue Apr 5 22:31:47 CST 2022
machine : aarch64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.4.1
numpy : 1.22.3
pytz : 2022.1
dateutil : 2.8.2
pip : 22.1.1
setuptools : 59.8.0
Cython : None
pytest : 7.1.2
hypothesis : 6.43.0
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.8.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : 4.11.1
bottleneck : None
fastparquet : None
fsspec : 2022.3.0
gcsfs : None
matplotlib : 3.5.1
numba : None
numexpr : None
odfpy : None
openpyxl : 3.0.9
pandas_gbq : None
pyarrow : 7.0.0
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : 0.8.9
xarray : None
xlrd : None
xlwt : None
zstandard : None