format date to show month,day double digit

Answered format date to show month,day double digit

  • Monday, July 09, 2012 10:17 PM
     
     

    Hi,

    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

    Thank u

    Sun


    sunDisplay

All Replies