dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;dateTimePicker1.CustomFormat = " yyyy-MM-dd HH:mm:ss " ;