How to configure DateFormat in a DateTimePicker control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

The default configuration of a DateTimePicker is
"Friday , October 29, 2004"
how to change to
"10/9/2004"

Thanks
 
Here the sampe codes:
Me.DateTimePicker2.Format = DateTimePickerFormat.Custom
Me.DateTimePicker2.CustomFormat = "MM/dd/yyyy"
 
Li Pang said:
Here the sampe codes:
Me.DateTimePicker2.Format = DateTimePickerFormat.Custom
Me.DateTimePicker2.CustomFormat = "MM/dd/yyyy"

That's the answer to your question...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top