Hi,
I’m after some advice for a problem I have run into. We’ve had a reservation system built for us which uses dates for obvious reasons. I have uploaded it to my hosting provider and I’ve now found out that they don’t have the Calendar Option enabled and nor will they enable it!!
This is the code that uses it: Would there be a way round it apart from moving servers?
function dateDiff($dformat, $endDate, $beginDate)
{
$date_parts1=explode($dformat, $beginDate);
$date_parts2=explode($dformat, $endDate);
$start_date=gregoriantojd($date_parts1[0], $date_parts1[1], $date_parts1[2]);
$end_date=gregoriantojd($date_parts2[0], $date_parts2[1], $date_parts2[2]);
return $end_date - $start_date;