Define function fields on common types (date and numbers)