create foramt_number smarty function
test foramt_date without datetime object
complete test for foramt_number smarty function