(PECL paradox >= 1.4.0)
px_date2string — Converts a date into a string.
Turns a date as it stored in the paradox file into human readable format. Paradox dates are the number of days since 1.1.0000. This function is just for convenience. It can be easily replaced by some math and the calendar functions as demonstrated in the example below.
Resource identifier of the paradox database as returned by px_new().
Value as stored in paradox database field of type PX_FIELD_DATE.
Returns TRUE on success or FALSE on failure.
Example #1 Turn a paradox date into a human readable form
$px = px_new();
/* make up a date as it could be stored in */
/* a date field of a paradox db. */
/* 700000 days since 1.1.0000. */
$days = 700000;
/* Use the calendar functions to print a */
/* human readable format of the date */
/* px_date2string() outputs the same */
echo px_date2string($px, $days, "n/d/Y")."\n";
The above example will output: