decimal_date function

Converts a date to a decimal of its year