I have a DateTimePicker
and it is currently displaying "Friday, June 26 2009"
How would I change it so it displays "June 26 2009"?
I have a DateTimePicker
and it is currently displaying "Friday, June 26 2009"
How would I change it so it displays "June 26 2009"?
myDateTimePicker.CustomFormat = "MMMM dd yyyy";
You can set this in this in the designer too.
MSDN is your friend.
You can send the DateTime method ToString(), any format which you would like to be displayed.
For example, this would display, '26 June 2009' DateTime.Today.ToString("dd MMMM yyyy");
this code worked for me
DTP_deltek.CustomFormat = "MMM-dd-yyyy";
DTP_deltek.Format = DateTimePickerFormat.Custom;