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.
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.
dateTimePicker1.CustomFormat = "dd/MM/yyyy";
dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "dd/MM/yyyy";
dateTimePicker1.Format = DateTimePickerFormat.Custom;
You need to set the property DateTimePicker.Format
to DateTimePickerFormat.Custom
and set your desired format in the DateTimePicker.CustomFormat
property.