DateTimePicker 控件置空

            dtOrderDateFrom.Format = DateTimePickerFormat.Custom;
            dtOrderDateFrom.CustomFormat = " ";
DateTimePicker 时间控件置空  



格式化输出
 textBox1.Text = dateTimePicker1.Value.ToString("yyyy-MM-dd HH:mm:ss");
posted @ 2017-09-15 12:02  enych  阅读(702)  评论(0编辑  收藏  举报