DateTime and TimeSpan Sample

To get samples and instructions for installing them, see the following:

  • Click Samples on the Visual Studio Help menu.

    For more information, see Locating Sample Files.

  • The most recent versions and the complete list of samples are available on the Visual Studio 2008 Samples Web site.

  • You can also locate samples on your computer's hard disk. By default, samples and a Readme file are copied to a folder under \Program Files\Visual Studio 9\Samples\. For Visual Studio Express Editions, all samples are located on the Internet.

To run this sample

  1. Locate this sample on the MSDN Web site, and then download and open the sample.

  2. Press F5.

  3. Enter values into the appropriate text box controls, and then click the page's Refresh button to run the corresponding method and display the results in the label controls.

To view the sample documentation

  1. In Solution Explorer, double-click the Documentation folder.

  2. If you are using Visual Basic Express Edition, right-click ReadMe.htm in the Documentation folder. Select View in Browser.

  3. If you are using another version of Visual Basic, double-click ReadMe.htm in the Documentation folder.

Demonstrates

The form contains one tab control with several tabbed pages. Each tabbed page demonstrates a group of DateTime or TimeSpan members. Within each tab, controls enable you to specify the input parameters for the various methods and properties.