Skip to main content

Problem:

DEMO - How to set the date on a WinForms DateTime control

Resolution:

INTRODUCTION

==========

This demo shows how to set the date on a DateTimerPicker control in .Net WinForms

DESCRIPTION

=========

This demo shows:

o     How to create a instance of the DateTime class

o     How to set the DateTimePicker control to a specified date.

REQUIREMENTS

==========

Net Express V5

OPERATION

=======

Build and run the example project. This has a datepicker which has been set to 25th December 2006.

Look at the code in the Form_Load event. This uses the DateTime class to set the date on the picker control.

Keywords: demonstration, sample, example, demo, .net , winforms , datetime , datepicker control

demo.ex

demo.ne

Attachments:

DateTime.zip

Old KB# 4321