I need to create a table. One column of the table schedule date and time. I am new to C++/CLI. The only way that I know how to find the relate the date and time is using
System::DateTime newDate
I need to find out the schedule date in each row and sort them by the happening soon. How can I compare each DateTime object with the current time and find out which happen the soonest?
Thanks
It’s quite unclear what exactly do you want, but assuming that you have a collection of objects with a
Dateproperty, you can do something like this:That being said, it’s probably not a good idea to learn programming in C++/CLI, I think it would be much better if you used C#, unless you have a good reason for C++/CLI.