Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Initialize a COledateTime object

Status
Not open for further replies.

jayjay60

Programmer
Jun 19, 2001
97
FR
Hi,

At the beginning of my application, i declare a COleDateTime object like that:
COleDateTime Date1;

After, i have to compare other dates(Date2,Date3), and then change Date1, which is inialized firstly to 0, like that:Date1=Date2.GetDay()/Date2.GetMonth()/Date3.GetYear().
So, i don't know how i could modificate Date1 in this way, is anybody coule explain me how to do that?

thanks in advance.

jayjay
 
I has exactly the same problem. Unfortunately, the answer is that you can't a initialise a COleDataTime object to a non-date value (makes sense really). You must comply with the valid range for whichever day/month/year you're dealing with.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top