奇怪了,显示的时间不正确呢??
private void Form1_Load(object sender, System.EventArgs e)
{
DateTime dt=DateTime.Now;
this.dateTimePicker1.Value=dt.AddMonths(-1);
this.dateTimePicker2.Value=dt;
}
private void button7_Click(object sender, System.EventArgs e)
{
this.textBox3.Text=this.dateTimePicker1.Value.ToString("yyyy-mm-dd");
this.textBox4.Text=this.dateTimePicker2.Value.ToString("yyyy-mm-dd");
}
怪了,在文本框中显示的时间的月份却显示成了机器时间的分钟数了,大家看看那里错了???