Reputation: 91
Iam using a custom dateTimePicker
but whenever i change value in UI , it takes the value stored in its property tab .
dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "dd/mm/yyyy HH:mm:ss.mmm";
dateTimePicker1.ShowUpDown = true;
i showed the date using MessageBox.Show(dateTimePicker1.Value.ToString())
value shown :
Upvotes: 0
Views: 74
Reputation: 2173
I think your format is incorrect: dd/mm/yyyy HH:mm:ss.mmm
. Try dd/MM/yyyy HH:mm:ss.mmm
Upvotes: 2