c#从字符串转化日期或时间时失败

DateTime birthday = Convert.ToDateTime(this.dateTimePicker1.Value);
2024-12-01 00:10:13
推荐回答(1个)
回答1:

this.dateTimePicker1.Value本身就是DateTime类型的,还转毛啊,转也会失败!!