Set default format of datetimepicker as dd-MM-yyyy

后端 未结 5 1612
情歌与酒
情歌与酒 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:27

    Ammending as "optional Answer". If you don't need to programmatically solve the problem, here goes the "visual way" in VS2012.

    In Visual Studio, you can set custom format directly from the properties Panel:

    First Set the "Format" property to: "Custom"; Secondly, set your custom format to: "dd-MM-yyyy";

提交回复
热议问题