title: How to export dataframe into excel with formatting in Python?
body: <p>I have two columns in my dataframe with date values.</p>
  
  <p>when I am exporting it into xlsx format, columns values displaying with the date and time format both.</p>
  
  <p>df = <a href="https://i.stack.imgur.com/ZT5DS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZT5DS.png" alt="enter image description here"></a></p>
  
  <h1>Export data into excel file</h1>
  
  <p>df.to_excel(r'D:\Users\Desktop\CPS.xlsx',index=False)</p>
  
  <p>Date value showing up with time format after exporting into xlsx format:
  <a href="https://i.stack.imgur.com/GWcLQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GWcLQ.png" alt="enter image description here"></a></p>
  
  <p>I just need to export it as it is. the only date should be displayed.</p>