NewDateTime

PowerBuilder Native Interface

IPB_Session interface:

NewDateTime method

Description

Syntax

NewDateTime()

Return Values

Examples

if (ci->pArgs->GetAt(i)->IsNull())
{
   pArguments[i].datetime_val=Session->NewDateTime();
   Session->SetDateTime(pArguments[i].datetime_val,
      1900, 1 , 1, 1, 1, 1); // Datetime:
                             // 1900-01-01 01:01:01
}
else
{
   pArguments[i].datetime_val =
      ci->pArgs->GetAt(i)->GetDateTime();
}

Usage

See Also