Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

datepicker is not picking custom date format?

Tags:

c#

.net

winforms

Requirement is to display date in the format "22 Jan 2010".

I have coded

 calanderFrom.Format = DateTimePickerFormat.Short;
 calanderFrom.CustomFormat = "dd MMM yyyy";

but date is still coming in "5/5/2011" format. Please guide me how to change fromat.

thanks

like image 489
user576510 Avatar asked Dec 06 '22 21:12

user576510


1 Answers

Replace

calanderFrom.Format = DateTimePickerFormat.Short;

with

 calanderFrom.Format = DateTimePickerFormat.Custom;
like image 188
FIre Panda Avatar answered Dec 20 '22 22:12

FIre Panda