DateTimePicker control date format help reqd

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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/
 
Back
Top