I have a dialog program and I want to get the current date and time by using COleDateTime. I then want to calculate thirty days in advance of the current time. I have this code which I got from another question in this forum but when I do a debug and a step through I cannot get the current time.
COleDateTimeSpan timeEnd= COleDateTimeSpan( 5, 0, 0, 0 );
COleDateTime newtimeStart = timeStart + timeEnd;
any suggestions as to why it is not picking up the correct date. Also is this a good way to go about adding the date.