PHPBuilder - convert clarion date into a "real" date

RSS Twitter
Snippets Calendars Dates

convert clarion date into a "real" date

by: Peder Halseide
March 3, 2005

Version: .1

Type: Sample Code (HOWTO)

Category: Calendars/Dates

License: GNU General Public License

Description: i have been working with some legacy dos and clarion stuff. couldn't find the answer and pieced it together here.... if you are a paychoice user you know all about this....or not....

function clarion2realdate($clariondate)
$unixdate = (($exceldate - 25569) * 86400)+86400;
$date = date ("m/d/Y" , $unixdate);
echo $date;



Comment and Contribute

Your comment has been submitted and is pending approval.

Peder Halseide



(Maximum characters: 1200). You have characters left.