Forum guidelines
AuthorQuestion
datetimepicker value
Posted By Shyja Abraham on 11 Apr 2011

              how we delete the time from datetimepicker control?  plz help.

AuthorReply
Arshad
  • 0
  • 0
accepted
Re: datetimepicker value
Posted By Arshad on 11 Apr 2011   Accepted Answer
Hi

you will have the InitializeComponent() method, there your control will get initialize, just put the below line while initializing the datetimepicker control

this.dateTimePicker.CustomFormat = "dd.MM.yyyy";
this.dateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker.Location = new System.Drawing.Point(1555);
this.dateTimePicker.Name = "dateTimePicker";
this.dateTimePicker.Size = new System.Drawing.Size(24922);
this.dateTimePicker.TabIndex = 0;

just follow the above two highlighted line.

Regards,
Arshad

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.