dtOrderDateFrom.Format = DateTimePickerFormat.Custom; dtOrderDateFrom.CustomFormat = " ";
DateTimePicker 时间控件置空 格式化输出 textBox1.Text = dateTimePicker1.Value.ToString("yyyy-MM-dd HH:mm:ss");