I have a datepicker control formatted as a updown.
this.dateTimePicker1.ShowUpDown = true;
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
Custom format :
ci = Application.CurrentCulture;
format = ci.DateTimeFormat.ShortDatePattern + " HH:mm:ss";
This format shows me 10/ 1/2010 00:00:00
How would I get a 10/01/2010(display mm/dd/yyyy, format date to show month,day double digit
I would need this as a dynamic format based on the culture. So cannot hard code it in Custom Format
I get confused. If you want the date display according to culture, then don't do anything. If you want to display date in your way, then you need custom format.
Could you please explain what do you mean by dynamic format?
Bob Wu [MSFT]
MSDN Community Support | Feedback to us