L
L
lAtrey2014-10-22 09:13:58
Programming
lAtrey, 2014-10-22 09:13:58

How to set date and time in dateTimePicker C++/CLI?

On the Internet, they write the same thing everywhere (true for Sharpe):

DateTime date2010 = new DateTime(2010, 12, 31, 0, 0, 0);
dateTimePicker1.Value = date2010;

but it doesn't work for me. Writing
dateTimePicker1->Value = gcnew DateTime(year, month, day, hours, minutes, 0);

error such:
7f3fc478ad9c45d89dd3ea7b2816af72.png
How correctly to set date and time?
year, month, day, hours, minutes of type int.
Question removed.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question