How To Convert a DBTIMESTAMP into a DATE (241718)
The information in this article applies to:
- Microsoft Visual C++ 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q241718 SUMMARY
When given a DBTIMESTAMP value, you might need to convert the value into a type that is compatible with COM IDispatch interfaces, such as the DATE type. If you are using Microsoft Foundation Classes (MFC), you can use the COleDateTime class to help convert from a DBTIMESTAMP to a DATE. If you are not using MFC, you can still use the code provided by MFC without needing the entire MFC framework.
REFERENCES
COleDateTime in MSDN
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbAutomation kbDatabase kbDateTime kbhowto KB241718 |
---|
|