tags:

views:

943

answers:

3

How do I set a DateTimePicker to out put dd/mm/yyyy.

At the moment it is giving me the day, date, month then year.

Thanks.

+3  A: 
dateTimePicker1.CustomFormat = "dd/MM/yyyy";
dateTimePicker1.Format = DateTimePickerFormat.Custom;
Marek Karbarz
+1  A: 
dateTimePicker1.CustomFormat = "dd/MM/yyyy";
dateTimePicker1.Format = DateTimePickerFormat.Custom;
Jason Punyon
+1  A: 

You need to set the property DateTimePicker.Format to DateTimePickerFormat.Custom and set your desired format in the DateTimePicker.CustomFormat property.

hmemcpy