SplitDate

PowerBuilder Native Interface

IPB_Session interface:

SplitDate method

Description

Splits the specified pbdate object into a year, month, and day.

Syntax

SplitDate (pbdate date, pbint *year, pbint *month, pbint *day)

Argument

Description

date

The pbdate object to be split

year

A year in the range 1000 to 3000

month

A month in the range 1 to 12

day

A day in the range 1 to 31

Return Values

PBX_RESULT. PBX_OK for success.

Examples

This statement splits the date in the first value in the PBCallInfo structure:

Session -> SplitDate(ci-> pArgs -> GetAt(0) ->
   GetDate(), &yy, &mm, &dd);

See Also