DateTimePicker dynamicDTP = newDateTimePicker(); dynamicDTP.Name = "DyanmicDateTimePicker"; dynamicDTP.Location = new System.Drawing.Point(12, 12); dynamicDTP.Size = new System.Drawing.Size(200, 25); dynamicDTP.Width = 200; dynamicDTP.Height = 25; dynamicDTP.CustomFormat = "MMMM dd, yyyy - dddd"; dynamicDTP.Format = DateTimePickerFormat.Custom;
DateTimePicker dynamicDTP = newDateTimePicker();
dynamicDTP.Name = "DyanmicDateTimePicker";
dynamicDTP.Location = new System.Drawing.Point(12, 12);
dynamicDTP.Size = new System.Drawing.Size(200, 25);
dynamicDTP.Width = 200;
dynamicDTP.Height = 25;
dynamicDTP.CustomFormat = "MMMM dd, yyyy - dddd";
dynamicDTP.Format = DateTimePickerFormat.Custom;
use System.DateTime.Now