DateTimePicker control date format help reqd

D

Darren Shaffer

as provided, this sample control only supports short and long formats - no
custom formats.
you could either extend this control's capabilities or look at VS2005 and
CF2.0 which has
a DTP with custom formatting support.

--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com
 
S

Sergey Bogdanov

Take a look at OpenNETCF.Windows.Forms.DateTimePicker control from SDF
[1]. To set custom date format write the following code in OnLoad event
of your form:

<vb.net>
dateTimePicker.CustomFormat = "dd-mm-yyyy"
dateTimePicker.Format = OpenNETCF.Windows.Forms.DateTimePickerFormat.Custom
</vb.net>



[1] http://www.opennetcf.org/sdf/
 

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

Top