px_date2string
(PECL paradox:1.4.0-1.4.1)
px_date2string —
Converts a date into a string.
Description
string px_date2string
( resource $pxdoc
, int $value
, string $format
)
Parameters
-
pxdoc
-
Resource identifier of the paradox database
as returned by px_new().
-
value
-
Value as stored in paradox database field of type
PX_FIELD_DATE.
-
format
-
String format similar to the format used by date().
The placeholders support by this function is a subset of those
supported by date() (Y, y, m, n, d, j, L).
Return Values
Returns TRUE on success or FALSE on failure.
Examples
Example #1 Turn a paradox date into a human readable form
<?php
$px = px_new();
$days = 700000;
echo jdtogregorian($days+1721425)."\n";
echo px_date2string($px, $days, "n/d/Y")."\n";
px_delete($px);
?>
The above example will output: