PA_EvalDate

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_EvalDate (string; day; month; year)

ParameterTypeDescription
stringchar *The string to convert in date
dayshort *Pointer the the day of the string
monthshort *Pointer the the month of the string
yearshort *Pointer the the year of the string

Description

The routine PA_EvalDate returns in *day, *month, and *year the values of string, once converted to a date.

This works like the Date 4th Dimension function. Refer to the 4D Language Reference manual for more information.

Depending on default settings or on previous calls to PA_UsePStrings or PA_UseCStrings, string must be a Pascal or a C string.

Example

   short   d, m, y;
   PA_EvalDate("12/31/2000", &d, &m, &y);
   // Now, d == 31, m == 31, and y == 2000

See Also

Date.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next