How do I display MM/dd/yyyy (no time) in my DataGridView column?

后端 未结 7 479
臣服心动
臣服心动 2021-01-15 18:41

I need help on my DataGridView column date format. I want the date to be \"MM/dd/yyyy\". I dont need the time.

How can this be done programmatically?

相关标签:
7条回答
  • 2021-01-15 19:39
    dataGridView1.Columns[0].FormatString = "{0:dd.MM.yyyy}";
    

    Just replace your column index[0,1,2...etc] and get your desired result!

    0 讨论(0)
提交回复
热议问题