Date and Time Controls

Time flies like an arrow. Fruit flies like a banana.

Anonymous

Dates and times are ubiquitous in our lives. So too in computer programs. Programs are commonly used to gather and display date and time information. While it is always possible to use simple text boxes and labels to gather and display these values, and to painstakingly format and validate text strings to appear as valid date and time values, the .NET Framework provides several controls and classes to ease this chore and make it more robust. As an added benefit, these classes automatically take into account the time zone and regional settings on the end user's machine. This chapter will cover those controls and classes.

Категории