calanderFrom.Format = DateTimePickerFormat.Short;
calanderFrom.CustomFormat = "dd MMM yyyy";
always give "dd/mm/yyyy
you have to do it incalanderFrom.Format = DateTimePickerFormat.Custom
calanderFrom.CustomFormat = "dd MMM yyyy";
Msdn Linkhttp://msdn.microsoft.com/en-us/library/h2ef6zxz.aspx
http://msdn.microsoft.com/en-us/library/aa236616(v=vs.60).aspx
SO Link
http://stackoverflow.com/questions/5893626/datepicker-is-not-picking-custom-date-format
No comments:
Post a Comment