NewDate

PowerBuilder Native Interface

IPB_Session interface:

NewDate method

Description

Syntax

NewDate()

Return Values

Examples

if (ci->pArgs->GetAt(0)->IsNull())
{
   pArguments[i].date_val = Session->NewDate();

   Session->SetDate(pArguments[i].date_val,
      1900,1,1); // Date: 1900-01-01
   isNull[i]=true;
}
else
{
   pArguments[i].date_val =
      ci->pArgs->GetAt(i)->GetDate();
   isNull[i]=false;
}

Usage

See Also