Set default format of datetimepicker as dd-MM-yyyy

后端 未结 5 1615
情歌与酒
情歌与酒 2021-02-02 08:14

I have a datetimepicker which on loading of windows form shows me format in \'MM-dd-yyyy\',

as follows:

\"en

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 08:25

    You can set CustomFormat property to "dd-MM-yyyy" in design mode and use dateTimePicker1.Text property to fetch string in "dd/MM/yyyy" format irrespective of display format.

提交回复
热议问题