Hello Henning, CTime will give you access to the "time_t" field. I just store the time_t in the DB. It's an unsigned long that represents seconds since Jan 1, 1970. You can feed a time_t back into CTime to initialize it.
Be aware though that Microsoft is changing what "time(NULL)" returns. I read a warning in the SDK that says, they're changing it to seconds since some time in the 1500's (no joke). It apparently only affects VC7 and above. I'm speaking of the MFC CTime class. Hopefully .net implements the same interface. C. Wednesday, December 14, 2005, 11:15:27 AM, you wrote: HF> Hi, HF> I am looking for a simple way of using date and time values with HF> sqlite3. I have some Ctime classes (VC++.net) which have to be stored in HF> the database and they should be compared. HF> Anyone has an idea? HF> Henning -- Best regards, Teg mailto:[EMAIL PROTECTED]

