I am using C++ Builder and am wanting some help to see if two times are the same.
Here is my code:
TDateTime appDateFromVector = TimeOf(appointmentsForFind[i].getAppDateTime());
DateTime appDateFromControl = TimeOf(DateTimePickerAppointmentTime->Time);
These values appear to be the same. I have checked via a ShowMessage statement, and the message displayed is both in time format and they are the same value.
When comparing them though, with the following statement:
if (appDateFromVector == appDateFromControl)
I am not getting a true statement. Is there another process needed to check if two times are the same?
Thanks