#native_company# #native_desc#
#native_cta#

convert clarion date into a “real” date

By Peder Halseide
on 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….

<?php
function clarion2realdate($clariondate)
{
$exceldate=$clariondate-36161;
$unixdate = (($exceldate - 25569) * 86400)+86400;
$date = date ("m/d/Y" , $unixdate);
echo $date;
}

//example:
clarion2realdate(74572);

?>