GetMonthOfYear

Gets the month of the year from a DateTime and returns a numeric value from 1 to 12. Returns null if the input is null.