返回日期和时间值 调用 Text 属性返回与控件中的格式相同的完整值,或调用 Value 属性的适当方法返回值的一部分。使用 ToString 将信息转换成可显示给用户的字符串。 
' Visual Basic
MessageBox.Show("The selected value is ", DateTimePicker1.Text)
MessageBox.Show("The day of the week is ", 
   DateTimePicker1.Value.DayOfWeek.ToString)
MessageBox.Show("Millisecond is: ", 
   DateTimePicker1.Value.Millisecond.ToString)// C#
MessageBox.Show ("The selected value is " + 
   dateTimePicker1.Text);
MessageBox.Show ("The day of the week is " + 
   dateTimePicker1.Value.DayOfWeek.ToString());
MessageBox.Show("Millisecond is: " + 
   dateTimePicker1.Value.Millisecond.ToString());
MSDN中的例子