create new smarty function for displaying date in expected format
complete test for format_date smarty function