If you want to apply a custom format to the datepicker control in Windows Forms, an important thing to do is to set its Format property to "Custom" e.g. If you want to set the DatePickers custom date format to "mm/dd/yyyy" you need to write following in the designer's code- this .DatePicker1.Format = System.Windows.Forms. DateTimePickerFormat .Custom; this .DatePicker1.CustomFormat = "MM/dd/yyyy" ;
Hi, welcome to my blog. Do leave a comment if you find any post helpful or have suggestions. I have dedicated this blog to try to put solutions to some of the technical issues I faced as an application developer -Hitesh Manglani