Chapter 16. 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.

Get Programming .NET Windows Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.