optimised functions

removed date.php ; bg_date() integrated in functions.php