Forum Discussion
TanyaYatskovska
Alumni
12 years agoHi David,
Let me quote Allen's reply:
As for the first two appearances (aqDateTime.SetDateElements and aqDateTime.SetTimeElements), the behavior is correct: the dt2 and time1 variables of the Date type contain only the date and time portions respectively, and the lacking parts are initialized as a zero value (00:00:00 in the first case and 12/30/1899 (the "zero date") in the second one).
As the aqDateTime object contains only the time in your case, the SetSystemDateTime method releases the date value. It doesn't know what date should be set.