日期:2014-05-20 浏览次数:20789 次
private void Form1_Load(object sender, EventArgs e) { dateTimePicker1.Format = DateTimePickerFormat.Custom; dateTimePicker1.CustomFormat = "yyyy-MM-dd"; }
------解决方案--------------------
设置dateTimePicker格式
dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "yyyy-MM-dd";