Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDBCResultSet::getDate ( P6UINT32  index,
P6TIME pTime 
)
pure virtual

Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with a time value.

Note, to obtain a date type value in an ISO 8601 string format, call the getString() method instead of this method. As defined in SQL, date values can be returned in the ISO 8601 format. Also note that P6R, has methods to both parse and create ISO 8601 strings (see p6Time::parseISO8601DateA(), p6Time::parseISO8601DateW(), p6Time::createISO8601DateA(), and p6Time::createISO8601DateW()).

Parameters
index[ in ] Starts at 1, count from left to right of parameter in prepared statement to extract
pTime[ in ] Expect a P6TIME value to be returned
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eInvalidArgpTime is NULL
P6R::eTooBigThe index is greater than the last valid parameter to extract.
P6R::eValueNULLDate has a null value.