For C++ database applications the APIs for managing datetime fields are exactly as for C applications. Please see the C API Datetime Fields page for details.
datetime