string time = DateTimePicker1.value.ToShortDateString();--结果为2017/1/1string time = DateTimePicker1.value.ToShortTimeString();--结果为10:21string time = DateTimePicker1.value.ToString(); --结果为2017/1/1 10:21
有一个Value属性可以获取或者设置日期