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!

CTime, COleDateTime and milliseconds

Status
Not open for further replies.

john0532

Programmer
Jul 2, 2002
27
0
0
US
I'm looking for a way to save milliseconds in a SQL Server database datetime field. CTime doesn't handle milliseconds as far as I know and I haven't been able to find a way to do it with COleDateTime either. Can I add the milliseconds in a SYSTEMTIME to COleDateTime? Do I need to change RFX_Date? Any tips would be greatly appreciated.
 
CTime does have a constructor that takes the system time as parameter. you could use the system time and pass it as parameter

CTime( const SYSTEMTIME& sysTime, int nDST = -1 );

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top