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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CTime

Status
Not open for further replies.

nicktherod

Programmer
Nov 10, 2000
19
CA
I have a date stored in a database and i want to compare that date with the systems date and then perform calculations if necessary. i.e. Is date todays date? No then do this. Kind of thing.

The date from the DB is of type CTIME in the recordset. I've tried a couple of things but nothing works and i am getting frustrated with the thing.

Please help.

Thanks
 
nick,

> The date from the DB is of type CTIME in the recordset

I'm not familiar with that type. What DB are you working with?

-pete

 
nick,

Ultimately you want to get the value into a COleDateTime MFC object. How to accomplish that depends on the API interface you are using to communicate with the Access file.

> Access ODBC
> CTIME

So your field type in the Access table is 'Date/Time'?

You are using the ODBC API to communicate with the database? If so please post the API function used to return the data from the 'Date/Time' field.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top