Create datefunc.php