Date & Time data type

The class provided for date & time data type in ADO Wrapper API is Proud.CPnTime. Here shows how you can use it.

Proud::CPnTime t(2009,1,2,3,4,5); // 2009, January/2, 3:04:05
cmd.Parameters[1] = t; //Inserts date & time by parameter of stored procedure
...
Proud::CPnTime t2;
t2 = cmd.Parameters[2]; // This output parameter of stored procedure that receives data & time.
t2.Format(L"%x"); // This method converts date & time to string format.
int year = t2.GetYear(); // This method gets year information.