add date field to function score doc